public class LinearPosition extends Object implements FeatureExtractor
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 LinearPosition |
instance |
Constructor and Description |
---|
LinearPosition() |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
getFeatures(Constituent c) |
String |
getName() |
public static LinearPosition instance
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.