| it.unimi.dsi.mg4j.index.cluster.LexicalClusteringStrategy
All known Subclasses: it.unimi.dsi.mg4j.index.cluster.ChainedLexicalClusteringStrategy, it.unimi.dsi.mg4j.index.cluster.ContiguousLexicalStrategy,
Method Summary | |
int | globalNumber(int localIndex, int localNumber) Returns the global term number given a local index and a local term number (optional operation).
This operation is not, in general, necessary for a
LexicalCluster to work, as no action on a local index returns local numbers. | int | localIndex(CharSequence term) Returns the index to which a given term is be mapped by this strategy.
Parameters: term - a term. |
globalNumber | int globalNumber(int localIndex, int localNumber)(Code) | | Returns the global term number given a local index and a local term number (optional operation).
This operation is not, in general, necessary for a
LexicalCluster to work, as no action on a local index returns local numbers. It is defined here
mainly for completeness and for debugging purposes (in case it is implemented).
Parameters: localIndex - the local index. Parameters: localNumber - the local term number. the global term number. |
localIndex | int localIndex(CharSequence term)(Code) | | Returns the index to which a given term is be mapped by this strategy.
Parameters: term - a term. the corresponding local index, or -1 if no index contains the term. |
|
|