public class ListFeatureExtractor extends Object implements FeatureExtractor
| Constructor and Description |
|---|
ListFeatureExtractor(String name,
Collection<String> list,
boolean caseSensitive)
Creates a new ListFeatureExtractor
|
ListFeatureExtractor(String listName,
String listFile,
boolean caseSensitive)
Creates a new ListFeatureExtractor
|
| Modifier and Type | Method and Description |
|---|---|
Set<Feature> |
getFeatures(Constituent c) |
String |
getName() |
public ListFeatureExtractor(String name, Collection<String> list, boolean caseSensitive)
name - The name of the list, which is emitted as the featurelist - The list of items against which the constituent should be checked.caseSensitive - Should the checking be case sensitive?public ListFeatureExtractor(String listName, String listFile, boolean caseSensitive) throws FileNotFoundException
listName - The name of the list, which is emitted as the featurelistFile - A file containing the elements of the listcaseSensitive - Should the checking be case sensitive?FileNotFoundExceptionpublic Set<Feature> getFeatures(Constituent c) throws EdisonException
getFeatures in interface FeatureExtractorEdisonExceptionpublic String getName()
getName in interface FeatureExtractorCopyright © 2017. All rights reserved.