public class ParsePath extends Object implements FeatureExtractor
The parse tree is read from a view name that is specified in the constructor. If possible, use the static objects for Charniak and Stanford parses.
Important note: To be able to specify the two constituents as input, the feature extractor assumes the following convention: The constituent that is specified as a parameter to the getFeatures function has an incoming relation from the first constituent. Furthermore, this incoming relation should be the only such relation.
This convention does not limit the expressivity in any way because the two constituents could be created on the spot before calling the feature extractor.
Modifier and Type | Field and Description |
---|---|
static ParsePath |
CHARNIAK |
static ParsePath |
STANFORD |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
getFeatures(Constituent c) |
String |
getName() |
public ParsePath(String parseViewName)
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.