public class PortugueseSDContextGenerator extends Object implements opennlp.tools.sentdetect.SDContextGenerator
| Constructor and Description |
|---|
PortugueseSDContextGenerator(char[] eosCharacters)
Creates a new
SDContextGenerator instance with no induced
abbreviations. |
PortugueseSDContextGenerator(Set<String> inducedAbbreviations,
char[] eosCharacters)
Creates a new
SDContextGenerator instance which uses the set
of induced abbreviations. |
| Modifier and Type | Method and Description |
|---|---|
String[] |
getContext(CharSequence sb,
int position) |
List<String> |
getSentenceContext(String sentence,
int index) |
public PortugueseSDContextGenerator(char[] eosCharacters)
SDContextGenerator instance with no induced
abbreviations.eosCharacters - public PortugueseSDContextGenerator(Set<String> inducedAbbreviations, char[] eosCharacters)
SDContextGenerator instance which uses the set
of induced abbreviations.inducedAbbreviations - a Set of Strings representing induced abbreviations
in the training data. Example: "Mr."eosCharacters - public String[] getContext(CharSequence sb, int position)
getContext in interface opennlp.tools.sentdetect.SDContextGeneratorCopyright © 2012–2017 CoGrOO. All rights reserved.