Package opennlp.tools.parser.treeinsert
Klasse CheckContextGenerator
java.lang.Object
opennlp.tools.parser.AbstractContextGenerator
opennlp.tools.parser.treeinsert.CheckContextGenerator
Generates predictive context for deciding when a constituent is complete.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungCheckContextGenerator(Set<String> punctSet) Instantiates aCheckContextGeneratorfor making decisions using apunctSet. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]getContext(Object o) String[]getContext(Parse parent, Parse[] constituents, int index, boolean trimFrontier) Finds the predictive context used to determine how constituent at the specifiedindexshould be combined with aparentconstituent.
-
Konstruktordetails
-
CheckContextGenerator
Instantiates aCheckContextGeneratorfor making decisions using apunctSet.- Parameter:
punctSet- A set of punctuation symbols to be used during context generation.
-
-
Methodendetails
-
getContext
-
getContext
Finds the predictive context used to determine how constituent at the specifiedindexshould be combined with aparentconstituent.- Parameter:
parent- Theparentelement.constituents- Theconstituentswhich have yet to be combined into new constituents.index- The index of the constituent which is being considered.trimFrontier- Whether the frontier should be trimmed, or not.- Gibt zurück:
- The context for deciding whether a new constituent should be created.
-