public final class SentenceExtractor extends Object
Constructor and Description |
---|
SentenceExtractor(SymbolTable symbolTable)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
extract(String line,
List<Pair<Integer,Integer>> sentencePositions)
Get Sentence lists.
|
String |
getBrokenLineSeparator()
Return the string that should be used to re-join lines broken with \n in
For English, this is a space.
|
int |
getSentenceEndPosition(String str)
Given string, return sentence end position.
|
public SentenceExtractor(SymbolTable symbolTable)
symbolTable
- symbolTablepublic int extract(String line, List<Pair<Integer,Integer>> sentencePositions)
line
- Input line which can contain more than one sentencessentencePositions
- List of extracted sentencespublic int getSentenceEndPosition(String str)
str
- input stringpublic String getBrokenLineSeparator()
Copyright © 2015. All rights reserved.