public class NomLexClassFeature extends Object implements FeatureExtractor
CoNLLColumnFormatReader.LemmaIdentifier
, the corresponding
value is used to identify the features. Otherwise, the lemma of the last
token is used. If the lemma is not an element of NomLex, then the last token
(lower cased) is tested. If NomLex does not contain the last token, then an
indicator feature is added that this token is not a member of NomLex.
When the NomLex entry is found, the following features are added:
Note: To use this feature, NomLexReader.nomLexFile must be set.
Modifier and Type | Field and Description |
---|---|
static NomLexClassFeature |
instance |
Constructor and Description |
---|
NomLexClassFeature() |
public static NomLexClassFeature 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.