|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.sentdetect.DefaultSDContextGenerator
public class DefaultSDContextGenerator
Generate event contexts for maxent decisions for sentence detection.
| Constructor Summary | |
|---|---|
DefaultSDContextGenerator(char[] eosCharacters)
Creates a new SDContextGenerator instance with
no induced abbreviations. |
|
DefaultSDContextGenerator(Set<String> inducedAbbreviations,
char[] eosCharacters)
Creates a new SDContextGenerator instance which uses
the set of induced abbreviations. |
|
| Method Summary | |
|---|---|
String[] |
getContext(CharSequence sb,
int position)
Returns an array of contextual features for the potential sentence boundary at the specified position within the specified string buffer. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultSDContextGenerator(char[] eosCharacters)
SDContextGenerator instance with
no induced abbreviations.
eosCharacters -
public DefaultSDContextGenerator(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 - | Method Detail |
|---|
public String[] getContext(CharSequence sb,
int position)
SDContextGenerator
getContext in interface SDContextGeneratorsb - The String for which sentences are being determined.position - An index into the specified string buffer when a sentence boundary may occur.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||