Package org.carrot2.text.suffixtree
Class SuffixTreeBuilder
- java.lang.Object
-
- org.carrot2.text.suffixtree.SuffixTreeBuilder
-
public final class SuffixTreeBuilder extends Object
Builds a suffix tree using method chains, thus avoiding direct dependency on specialized constructors ofSuffixTree.- See Also:
from(Sequence),build()
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SuffixTreebuild()static SuffixTreeBuilderfrom(Sequence sequence)Returns the builder for a suffix tree made fromsequence.SuffixTreeBuilderwithProgressCallback(SuffixTree.IProgressCallback callback)SuffixTreeBuilderwithStateCallback(SuffixTree.IStateCallback callback)
-
-
-
Method Detail
-
from
public static SuffixTreeBuilder from(Sequence sequence)
Returns the builder for a suffix tree made fromsequence.
-
build
public SuffixTree build()
- Returns:
- Return a new suffix tree according to current parameters. This method call may take a long time, depending on the length of the input sequence.
-
withProgressCallback
public SuffixTreeBuilder withProgressCallback(SuffixTree.IProgressCallback callback)
-
withStateCallback
public SuffixTreeBuilder withStateCallback(SuffixTree.IStateCallback callback)
-
-