Package opennlp.tools.parser.chunking
Klasse CheckContextGenerator
java.lang.Object
opennlp.tools.parser.AbstractContextGenerator
opennlp.tools.parser.chunking.CheckContextGenerator
Generates predictive context for deciding when a constituent is complete.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInstantiates aCheckContextGenerator
for generating predictive context for deciding when a constituent is complete. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]
getContext
(Object o) String[]
getContext
(Parse[] constituents, String type, int start, int end) Finds predictive context for deciding whether the specified constituents between the specifiedstart
andend
index can be combined to form a new constituent of the specifiedtype
.
-
Konstruktordetails
-
CheckContextGenerator
public CheckContextGenerator()Instantiates aCheckContextGenerator
for generating predictive context for deciding when a constituent is complete.
-
-
Methodendetails
-
getContext
-
getContext
Finds predictive context for deciding whether the specified constituents between the specifiedstart
andend
index can be combined to form a new constituent of the specifiedtype
.- Parameter:
constituents
- Theconstituents
which have yet to be combined into new constituents.type
- The type of the new constituent proposed.start
- The first constituent of the proposed constituent.end
- The last constituent of the proposed constituent.- Gibt zurück:
- The predictive context for deciding whether a new constituent should be created.
-