public class TextSegmenterResult extends BaseResults
Modifier and Type | Field and Description |
---|---|
int |
c99MaskSize
C99 mask size.
|
int |
c99SegmentsWanted
C99 segments wanted.
|
java.lang.String |
corpusConfig
Corpus configuration.
|
java.lang.String |
segmenterName
Segmenter name.
|
java.util.List<java.lang.Integer> |
segments
Text segment positions.
|
java.util.List<java.lang.String> |
segmentTexts |
java.util.List<java.util.List<java.lang.String>> |
sentences
Sentences.
|
java.lang.String |
text
Text to tokenize.
|
int |
tilerSlidingWindowSize
Text Tiler sliding window size.
|
int |
tilerStepSize
Text Tiler step size.
|
Constructor and Description |
---|
TextSegmenterResult()
Create text segment results.
|
TextSegmenterResult(java.lang.String text,
java.lang.String corpusConfig,
java.lang.String segmenterName,
int c99MaskSize,
int c99SegmentsWanted,
int tilerSlidingWindowSize,
int tilerStepSize,
java.util.List<java.util.List<java.lang.String>> sentences,
java.util.List<java.lang.Integer> segments)
Create populated text segment results.
|
Modifier and Type | Method and Description |
---|---|
protected void |
makeSegmentTexts()
Make segment texts from sentences and segment offsets.
|
java.lang.String |
toString()
Return string version of class entry values.
|
append, appendLn, stringFromHTML, tabularDataBaseResults, toHTML
public java.lang.String text
public java.lang.String corpusConfig
public int c99MaskSize
public int c99SegmentsWanted
public int tilerSlidingWindowSize
public int tilerStepSize
@XStreamConverter(value=ListOfListOfTokensConverter.class) public java.util.List<java.util.List<java.lang.String>> sentences
public java.util.List<java.lang.Integer> segments
public java.lang.String segmenterName
@XStreamConverter(value=SegmentTextsListConverter.class) public java.util.List<java.lang.String> segmentTexts
public TextSegmenterResult()
public TextSegmenterResult(java.lang.String text, java.lang.String corpusConfig, java.lang.String segmenterName, int c99MaskSize, int c99SegmentsWanted, int tilerSlidingWindowSize, int tilerStepSize, java.util.List<java.util.List<java.lang.String>> sentences, java.util.List<java.lang.Integer> segments)
text
- Text to segment.corpusConfig
- Corpus configuration.segmenterName
- Segmenter name.c99MaskSize
- C99 mask size.c99SegmentsWanted
- C99 number of segments wanted.tilerSlidingWindowSize
- Text tiling sliding window size.tilerStepSize
- Text tiling step size.sentences
- Word and sentences.segments
- Segment positions.protected void makeSegmentTexts()
On output, the segmentTexts field is set to the melded sentence text for each segment, in order.
public java.lang.String toString()
toString
in class java.lang.Object