public static class IndexConfig.TokenIndexerConfig extends IndexConfig.IndexerConfig
Constructor and Description |
---|
TokenIndexerConfig(String featureName,
it.unimi.di.big.mg4j.index.TermProcessor termProcessor,
boolean directIndexEnabled)
Creates a new TokenIndexerConfig.
|
Modifier and Type | Method and Description |
---|---|
String |
getFeatureName()
Obtains the name of the feature (on Token annotations) that needs to be
indexed by this token indexer.
|
it.unimi.di.big.mg4j.index.TermProcessor |
getTermProcessor()
Obtains the instance of
TermProcessor that needs to be used by
this token indexer. |
isDirectIndexEnabled
public TokenIndexerConfig(String featureName, it.unimi.di.big.mg4j.index.TermProcessor termProcessor, boolean directIndexEnabled)
featureName
- the name of the feature (on Token annotations) that needs to be
indexed.termProcessor
- The TermProcessor
to be used by this indexer. If
null
is given, then a NullTermProcessor
is
used.directIndexEnabled
- should a direct index also be built?public String getFeatureName()
public it.unimi.di.big.mg4j.index.TermProcessor getTermProcessor()
TermProcessor
that needs to be used by
this token indexer.Copyright © 2021 GATE. All rights reserved.