public class PhraseChunkingExtractor extends java.lang.Object implements RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
Constructor and Description |
---|
PhraseChunkingExtractor() |
Modifier and Type | Method and Description |
---|---|
private static void |
addPhraseHead(java.util.List<TerminalTreebankNode> headList,
TerminalTreebankNode newHead) |
java.util.List<Feature> |
extract(JCas jCas,
IdentifiedAnnotation arg1,
IdentifiedAnnotation arg2)
Extract features for the pair of named entity mentions.
|
(package private) java.util.List<TerminalTreebankNode> |
extractPhraseHeadByTreenode(JCas jCas,
java.util.List<TreebankNode> treenodesList) |
java.util.List<TerminalTreebankNode> extractPhraseHeadByTreenode(JCas jCas, java.util.List<TreebankNode> treenodesList)
private static void addPhraseHead(java.util.List<TerminalTreebankNode> headList, TerminalTreebankNode newHead)
public java.util.List<Feature> extract(JCas jCas, IdentifiedAnnotation arg1, IdentifiedAnnotation arg2) throws AnalysisEngineProcessException
RelationFeaturesExtractor
extract
in interface RelationFeaturesExtractor<IdentifiedAnnotation,IdentifiedAnnotation>
jCas
- The JCas containing the two named entity mentions.arg1
- The first identified annotation in the text.arg2
- The second identified annotation in the text.AnalysisEngineProcessException