public class LevinVerbClassFeature extends Object implements FeatureExtractor
This class assumes the existence of a file called verbClass.txt in the
class path. If the input constituent has an attribute called
CoNLLColumnFormatReader.LemmaIdentifier
, it treats the attribute as
the lemma of the verb. This lemma is used to index Levin's list and the
corresponding verb classes are returned as discrete features. If the lemma is
not present in the list, then the feature set contains a single feature:
"unknown". If the input constituent doesn't have the required attribute, an
empty feature set is returned.
Modifier and Type | Field and Description |
---|---|
static LevinVerbClassFeature |
instance |
Constructor and Description |
---|
LevinVerbClassFeature() |
public static LevinVerbClassFeature instance
public Set<Feature> getFeatures(Constituent c) throws EdisonException
getFeatures
in interface FeatureExtractor
EdisonException
public String getName()
getName
in interface FeatureExtractor
Copyright © 2015. All rights reserved.