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 aCheckContextGenerator
for 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 specifiedindex
should be combined with aparent
constituent.
-
Konstruktordetails
-
CheckContextGenerator
Instantiates aCheckContextGenerator
for 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 specifiedindex
should be combined with aparent
constituent.- Parameter:
parent
- Theparent
element.constituents
- Theconstituents
which 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.
-