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 of
SuffixTree
.- See Also:
from(Sequence)
,build()
-
Method Summary
Modifier and Type Method Description SuffixTree
build()
static SuffixTreeBuilder
from(Sequence sequence)
Returns the builder for a suffix tree made fromsequence
.SuffixTreeBuilder
withProgressCallback(SuffixTree.IProgressCallback callback)
SuffixTreeBuilder
withStateCallback(SuffixTree.IStateCallback callback)
-
Method Details
-
from
Returns the builder for a suffix tree made fromsequence
. -
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
-
withStateCallback
-