|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LexicalClusteringStrategy
A way to associate a term with a local index out of a given set.
A LexicalCluster
needs a way to
retrieve, given a term, the corresponding local index.
LexicalPartitioningStrategy
Method Summary | |
---|---|
int |
globalNumber(int localIndex,
int localNumber)
Returns the global term number given a local index and a local term number (optional operation). |
int |
localIndex(CharSequence term)
Returns the index to which a given term is be mapped by this strategy. |
Methods inherited from interface it.unimi.di.mg4j.index.cluster.ClusteringStrategy |
---|
numberOfLocalIndices |
Method Detail |
---|
int localIndex(CharSequence term)
term
- a term.
int globalNumber(int localIndex, int localNumber)
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).
localIndex
- the local index.localNumber
- the local term number.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |