|
List< CoreLabel > | getTokens (final String text) |
|
List< CoreLabel > | getTokens (final URL url) throws IOException |
|
|
static List< List< CoreLabel > > | getSentences (final List< CoreLabel > words) |
|
Segmenter
- Author
- Bernard Bou
◆ Segmenter()
grammarscope.server.parser.Segmenter.Segmenter |
( |
final Language |
language | ) |
|
◆ getSentences()
static List<List<CoreLabel> > grammarscope.server.parser.Segmenter.getSentences |
( |
final List< CoreLabel > |
words | ) |
|
|
staticprivate |
Segment words into sentences
- Parameters
-
- Returns
- sentence-indexed words
◆ getSentenceWords() [1/2]
List<List<CoreLabel> > grammarscope.server.parser.Segmenter.getSentenceWords |
( |
final String |
text | ) |
|
◆ getSentenceWords() [2/2]
List<List<CoreLabel> > grammarscope.server.parser.Segmenter.getSentenceWords |
( |
final URL |
url | ) |
throws IOException |
◆ getTokenizeModel()
String grammarscope.server.parser.Segmenter.getTokenizeModel |
( |
| ) |
|
◆ getTokens() [1/2]
List<CoreLabel> grammarscope.server.parser.Segmenter.getTokens |
( |
final String |
text | ) |
|
|
private |
Get list of tokens from text
- Parameters
-
- Returns
- list of tokens
◆ getTokens() [2/2]
List<CoreLabel> grammarscope.server.parser.Segmenter.getTokens |
( |
final URL |
url | ) |
throws IOException |
|
private |
Get list of tokens from URL
- Parameters
-
- Returns
- list of tokens
- Exceptions
-
◆ tokenizerFactory
final TokenizerFactory<CoreLabel> grammarscope.server.parser.Segmenter.tokenizerFactory |
|
private |
The documentation for this class was generated from the following file:
- grammarscope/server/src/main/java/grammarscope/server/parser/Segmenter.java