public class TextTilingTextSegmenter extends AbstractTextSegmenter implements TextSegmenter
Modifier and Type | Field and Description |
---|---|
protected int |
slidingWindowSize
Sliding window size.
|
protected int |
stepSize
Step size.
|
logger, stemmer, stopWords
Constructor and Description |
---|
TextTilingTextSegmenter()
Create segmenter.
|
Modifier and Type | Method and Description |
---|---|
<T> java.util.List<java.lang.Integer> |
getSegmentPositions(java.util.List<java.util.List<T>> sentences)
Segment text.
|
int |
getSlidingWindowSize()
Get sliding window size.
|
int |
getStepSize()
Get step size.
|
void |
setSlidingWindowSize(int slidingWindowSize)
Set sliding window size.
|
void |
setStepSize(int stepSize)
Set step size.
|
getLogger, getStemmer, getStopWords, setLogger, setStemmer, setStopWords
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
protected int slidingWindowSize
protected int stepSize
public int getSlidingWindowSize()
public void setSlidingWindowSize(int slidingWindowSize)
slidingWindowSize
- The sliding window size.public int getStepSize()
public void setStepSize(int stepSize)
stepSize
- The step size.public <T> java.util.List<java.lang.Integer> getSegmentPositions(java.util.List<java.util.List<T>> sentences)
getSegmentPositions
in interface TextSegmenter
getSegmentPositions
in class AbstractTextSegmenter
sentences
- The list of tokenized sentences to segment.