public class VerbVoiceIndicator extends WordFeatureExtractor
A predicate is either active or passive. We use a simple rule to determine this: if the verb follows a "to-be" verb in the same verb phrase and its POS tag is "VBN", then the predicate is passive. The verb may also be nested in other verb phrases that are themselves nested in the verb phrase containing the "to-be" verb, so long as the only phrases found in between the "to-be" verb and the target verb contain the target verb.
Modifier and Type | Field and Description |
---|---|
static VerbVoiceIndicator |
CHARNIAK |
static VerbVoiceIndicator |
STANFORD |
Constructor and Description |
---|
VerbVoiceIndicator(String parseViewName) |
Modifier and Type | Method and Description |
---|---|
String |
getName() |
Set<Feature> |
getWordFeatures(TextAnnotation ta,
int wordPosition) |
convertToWordFeatureExtractor, getFeatures
public static VerbVoiceIndicator CHARNIAK
public static VerbVoiceIndicator STANFORD
public VerbVoiceIndicator(String parseViewName)
public Set<Feature> getWordFeatures(TextAnnotation ta, int wordPosition) throws EdisonException
getWordFeatures
in class WordFeatureExtractor
EdisonException
public String getName()
getName
in interface FeatureExtractor
getName
in class WordFeatureExtractor
Copyright © 2017. All rights reserved.