org.carrot2.text.linguistic
Class LexicalDataLoader

java.lang.Object
  extended by org.carrot2.text.linguistic.LexicalDataLoader

public class LexicalDataLoader
extends Object

Common attributes related to loading and caching of lexical resources.


Field Summary
 boolean reloadResources
          Reloads cached stop words and stop labels on every processing request.
 ResourceLookup resourceLookup
          Lexical resource lookup facade.
 
Constructor Summary
LexicalDataLoader()
           
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reloadResources

public boolean reloadResources
Reloads cached stop words and stop labels on every processing request. For best performance, lexical resource reloading should be disabled in production.

This flag is reset to false after successful resource reload to prevent multiple resource reloads during the same processing cycle.

Attribute label:
Reload lexical resources
Attribute level:
Medium
Attribute group:
Preprocessing

resourceLookup

public ResourceLookup resourceLookup
Lexical resource lookup facade. By default, resources are sought in the current thread's context class loader. An override of this attribute is possible both at the initialization time and at processing time.

Attribute label:
Resource lookup facade
Attribute level:
Advanced
Attribute group:
Preprocessing
Constructor Detail

LexicalDataLoader

public LexicalDataLoader()


Copyright (c) Dawid Weiss, Stanislaw Osinski