public class BrownClusterFeatureExtractor extends WordFeatureExtractor
WordFeatureExtractor that generates prefixes of brown cluster Ids for each word. Using
BrownClusterViewGenerator, which now supports multiple Brown cluster sources to be used
simultaneously.WordFeatureExtractor| Modifier and Type | Field and Description |
|---|---|
static BrownClusterFeatureExtractor |
instance100 |
static BrownClusterFeatureExtractor |
instance1000 |
static BrownClusterFeatureExtractor |
instance320 |
static BrownClusterFeatureExtractor |
instance3200 |
static int[] |
prefixes |
| Constructor and Description |
|---|
BrownClusterFeatureExtractor(String name,
String brownClustersFile,
int[] prefixLengths) |
BrownClusterFeatureExtractor(String name,
String brownClustersFile,
int[] prefixLengths,
boolean useLastWord) |
| Modifier and Type | Method and Description |
|---|---|
String |
getName() |
BrownClusterViewGenerator |
getViewGenerator() |
Set<Feature> |
getWordFeatures(TextAnnotation ta,
int wordPosition) |
convertToWordFeatureExtractor, getFeaturespublic static final BrownClusterFeatureExtractor instance100
public static final BrownClusterFeatureExtractor instance320
public static final BrownClusterFeatureExtractor instance1000
public static final BrownClusterFeatureExtractor instance3200
public static final int[] prefixes
public BrownClusterFeatureExtractor(String name, String brownClustersFile, int[] prefixLengths) throws EdisonException
EdisonExceptionpublic BrownClusterFeatureExtractor(String name, String brownClustersFile, int[] prefixLengths, boolean useLastWord) throws EdisonException
EdisonExceptionWordFeatureExtractor.WordFeatureExtractor(boolean)public BrownClusterViewGenerator getViewGenerator() throws EdisonException
EdisonExceptionpublic Set<Feature> getWordFeatures(TextAnnotation ta, int wordPosition) throws EdisonException
getWordFeatures in class WordFeatureExtractorEdisonExceptionpublic String getName()
getName in interface FeatureExtractorgetName in class WordFeatureExtractorCopyright © 2017. All rights reserved.