Package opennlp.tools.parser.treeinsert
Klasse AttachContextGenerator
java.lang.Object
opennlp.tools.parser.AbstractContextGenerator
opennlp.tools.parser.treeinsert.AttachContextGenerator
Generates predictive contexts for deciding how constituents should be attached.
- Siehe auch:
-
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAttachContextGenerator
(Set<String> punctSet) Instantiates anAttachContextGenerator
for making decisions about attachments. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]
getContext
(Object o) String[]
getContext
(Parse[] constituents, int index, List<Parse> rightFrontier, int rfi) Finds the predictive contextual features about an attachment.
-
Konstruktordetails
-
AttachContextGenerator
Instantiates anAttachContextGenerator
for making decisions about attachments.
-
-
Methodendetails
-
getContext
-
getContext
Finds the predictive contextual features about an attachment.- Parameter:
constituents
- Theconstituents
as they have been constructed so far.index
- The constituent index of the node being attached.rightFrontier
- The nodes which have been not attach to so far.- Gibt zurück:
- A set of contextual features about this attachment.
-