public class POSBaseLineFeatureExtractor extends Object implements FeatureExtractor
Modifier and Type | Field and Description |
---|---|
protected POSBaseLineCounter |
counter |
Constructor and Description |
---|
POSBaseLineFeatureExtractor(String viewName,
POSBaseLineCounter counter)
Construct the feature extractor given a trained counter.
|
POSBaseLineFeatureExtractor(String viewName,
String json)
Construct the feature extractor given a trained counter in JSON format.
|
POSBaseLineFeatureExtractor(String viewName,
String corpusName,
String home)
Construct the feature extractor given a training corpus file.
|
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
getFeatures(Constituent c) |
String |
getName() |
protected POSBaseLineCounter counter
public POSBaseLineFeatureExtractor(String viewName, POSBaseLineCounter counter)
viewName
- Name of viewcounter
- trained POS baseline counterpublic POSBaseLineFeatureExtractor(String viewName, String corpusName, String home) throws Exception
viewName
- Name of viewcorpusName
- Name of Corpushome
- file name or directory name of the source corpusException
public Set<Feature> getFeatures(Constituent c) throws EdisonException
getFeatures
in interface FeatureExtractor
EdisonException
public String getName()
getName
in interface FeatureExtractor
Copyright © 2017. All rights reserved.