edu.stanford.nlp.parser.lexparser
Class MaxMatchSegmenter
java.lang.Object
edu.stanford.nlp.parser.lexparser.MaxMatchSegmenter
- All Implemented Interfaces:
- WordSegmenter, Serializable
public class MaxMatchSegmenter
- extends Object
- implements WordSegmenter
A word-segmentation scheme using the max-match algorithm
- Author:
- Galen Andrew
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MaxMatchSegmenter
public MaxMatchSegmenter()
train
public void train(Collection trees)
- Specified by:
train
in interface WordSegmenter
segmentWords
public Sentence segmentWords(String s)
- Specified by:
segmentWords
in interface WordSegmenter
Stanford NLP Group