public class WordClusterPaths extends java.lang.Object implements FeatureExtractor.FeatureExtractorInterface
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
clusterResourceName
TODO this should be moved into config somehow
|
static java.util.HashMap<java.lang.String,java.lang.String> |
wordToPath |
| Constructor and Description |
|---|
WordClusterPaths() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFeatures(java.util.List<java.lang.String> tokens,
FeatureExtractor.PositionFeaturePairs pairs)
Input: sentence
Output: labelIndexes, featureIDs/Values through positionFeaturePairs
We want to yield a sequence of (t, featID, featValue) pairs,
to be conjuncted against label IDs at position t.
|
public static java.lang.String clusterResourceName
public static java.util.HashMap<java.lang.String,java.lang.String> wordToPath
public WordClusterPaths()
throws java.io.IOException
java.io.IOExceptionpublic void addFeatures(java.util.List<java.lang.String> tokens,
FeatureExtractor.PositionFeaturePairs pairs)
FeatureExtractor.FeatureExtractorInterfaceaddFeatures in interface FeatureExtractor.FeatureExtractorInterface