Package opennlp.tools.parser.chunking
Klasse BuildContextGenerator
java.lang.Object
opennlp.tools.parser.AbstractContextGenerator
opennlp.tools.parser.chunking.BuildContextGenerator
Generates predictive contexts for deciding how constituents should be combined.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungInstantiates aBuildContextGeneratorfor making decisions about combining constituents.Instantiates aBuildContextGeneratorfor making decisions about combining constituents using aDictionary. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]getContext(Object o) String[]getContext(Parse[] constituents, int index) Finds the predictive context used to determine how constituent at the specifiedindexshould be combined with other constituents.
-
Konstruktordetails
-
BuildContextGenerator
public BuildContextGenerator()Instantiates aBuildContextGeneratorfor making decisions about combining constituents. -
BuildContextGenerator
Instantiates aBuildContextGeneratorfor making decisions about combining constituents using aDictionary.- Parameter:
dict- ADictionaryto be used during context generation.
-
-
Methodendetails
-
getContext
-
getContext
Finds the predictive context used to determine how constituent at the specifiedindexshould be combined with other constituents.- Parameter:
constituents- Theconstituentswhich have yet to be combined into new constituents.index- The index of the constituent which is being considered.- Gibt zurück:
- The context for building constituents at the specified
index.
-