public interface ISegmenter
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.List<edu.stanford.nlp.ling.CoreLabel>> |
getSentenceWords(java.lang.String text)
Get sentences from text
|
java.util.List<java.util.List<edu.stanford.nlp.ling.CoreLabel>> |
getSentenceWords(java.net.URL url)
Get document from URL
|
java.lang.String |
getTokenizeModel()
Get tokenize model
|
java.util.List<java.util.List<edu.stanford.nlp.ling.CoreLabel>> getSentenceWords(java.net.URL url) throws java.io.IOException
url
- URLjava.io.IOException
- exceptionjava.util.List<java.util.List<edu.stanford.nlp.ling.CoreLabel>> getSentenceWords(java.lang.String text)
text
- text to segmentjava.lang.String getTokenizeModel()