public final class SegmentationFactory
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
SegmentationFactory() |
Modifier and Type | Method and Description |
---|---|
static WordSegment |
makeSegment(edu.stanford.nlp.ling.CoreLabel word)
Make word segment
|
static Segmentation |
makeSegmentation(java.util.List<java.util.List<edu.stanford.nlp.ling.CoreLabel>> words)
Make segmentation
|
static java.util.List<WordSegment> |
makeSegments(java.util.List<edu.stanford.nlp.ling.CoreLabel> words)
Make word segments
|
static java.util.List<SentenceSegment> |
makeSentenceSegments(java.util.List<java.util.List<edu.stanford.nlp.ling.CoreLabel>> words)
Make sentence segments
|
public static java.util.List<SentenceSegment> makeSentenceSegments(java.util.List<java.util.List<edu.stanford.nlp.ling.CoreLabel>> words)
words
- list of sentencespublic static Segmentation makeSegmentation(java.util.List<java.util.List<edu.stanford.nlp.ling.CoreLabel>> words)
words
- list of sentencespublic static java.util.List<WordSegment> makeSegments(java.util.List<edu.stanford.nlp.ling.CoreLabel> words)
words
- list of wordspublic static WordSegment makeSegment(edu.stanford.nlp.ling.CoreLabel word)
word
- word