Package | Description |
---|---|
edu.illinois.cs.cogcomp.edison.features | |
edu.illinois.cs.cogcomp.edison.features.factory | |
edu.illinois.cs.cogcomp.edison.features.helpers |
Modifier and Type | Class and Description |
---|---|
class |
DiscreteFeature
A discrete feature
|
class |
RealFeature
A feature that takes a real value
|
Modifier and Type | Method and Description |
---|---|
Feature |
Feature.conjoinWith(Feature f) |
static Feature |
FeatureUtilities.conjunct(String left,
String right)
Conjoins two discrete features corresponding to the strings left and
right.
|
Feature |
Feature.prefixWith(String s) |
Modifier and Type | Method and Description |
---|---|
static Set<Feature> |
FeatureUtilities.conjoin(Set<Feature> feats1,
Set<Feature> feats2)
Conjoins two feature sets.
|
static Set<Feature> |
FeatureUtilities.deserializeFeatureSet(byte[] bytes)
Deserializes a byte array into a set of features
|
Set<Feature> |
FeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
ChunkPropertyIndicator.getFeatures(Constituent c) |
Set<Feature> |
ParseHeadWordFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
ContextFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
RegexFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
DependencyModifierFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
TokenPrefixFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
ListFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
AttributeFeature.getFeatures(Constituent c) |
Set<Feature> |
WordFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
CurrencyIndicator.getFeatures(Constituent c) |
Set<Feature> |
FeatureCollection.getFeatures(Constituent c) |
Set<Feature> |
CachedFeatureCollection.getFeatures(Constituent candidate) |
Set<Feature> |
ConditionalFeatureExtractor.getFeatures(Constituent c) |
static Set<Feature> |
FeatureUtilities.getFeatures(edu.illinois.cs.cogcomp.core.stats.Counter<String> counter)
Convert a counter over strings into a set of real valued features.
|
static Set<Feature> |
FeatureUtilities.getFeatures(Map<String,Float> features)
Convert a map from feature names to values into a set of real valued
features.
|
static Set<Feature> |
FeatureUtilities.getFeatures(Set<String> features)
Convert a set of strings into a set of discrete features.
|
Set<Feature> |
SuffixFeatureExtractor.getWordFeatures(TextAnnotation ta,
int wordPosition) |
Set<Feature> |
NgramFeatureExtractor.getWordFeatures(TextAnnotation ta,
int wordPosition) |
abstract Set<Feature> |
WordFeatureExtractor.getWordFeatures(TextAnnotation ta,
int wordPosition) |
Set<Feature> |
PrefixFeatureExtractor.getWordFeatures(TextAnnotation ta,
int wordPosition) |
static Set<Feature> |
FeatureUtilities.prefix(String prefix,
Set<Feature> features)
Add a prefix to all the features in the set.
|
Modifier and Type | Method and Description |
---|---|
Feature |
Feature.conjoinWith(Feature f) |
static int |
FeatureUtilities.getFeatureId(edu.illinois.cs.cogcomp.lbjava.learn.Lexicon lexicon,
boolean trainingMode,
Feature feature)
Returns the id of the feature according to the lexicon.
|
static edu.illinois.cs.cogcomp.lbjava.classify.Feature |
FeatureUtilities.getLBJFeature(Feature feature)
Convert an edison feature into an LBJ feature
|
Modifier and Type | Method and Description |
---|---|
static Set<Feature> |
FeatureUtilities.conjoin(Set<Feature> feats1,
Set<Feature> feats2)
Conjoins two feature sets.
|
static Set<Feature> |
FeatureUtilities.conjoin(Set<Feature> feats1,
Set<Feature> feats2)
Conjoins two feature sets.
|
static edu.illinois.cs.cogcomp.core.datastructures.Pair<int[],double[]> |
FeatureUtilities.convert(Set<Feature> features,
edu.illinois.cs.cogcomp.lbjava.learn.Lexicon lexicon,
boolean trainingMode)
Convert a feature set into a pair of arrays of integers and doubles by
looking up the feature name in the provided lexicon.
|
static edu.illinois.cs.cogcomp.lbjava.classify.FeatureVector |
FeatureUtilities.getLBJFeatures(Set<Feature> features)
Converts a Set of features into an LBJ friendly feature vector.
|
static Set<Feature> |
FeatureUtilities.prefix(String prefix,
Set<Feature> features)
Add a prefix to all the features in the set.
|
static byte[] |
FeatureUtilities.serializeFeatureSet(Set<Feature> features)
Serializes a set of features into a byte array.
|
Modifier and Type | Method and Description |
---|---|
static Set<Feature> |
FeatureNGramUtility.getLabelNgramsOrdered(List<Constituent> list,
int ngramLength) |
static Set<Feature> |
FeatureNGramUtility.getLabelNgramsUnordered(List<Constituent> list,
int ngramLength) |
static <T> Set<Feature> |
FeatureNGramUtility.getNgramsOrdered(List<T> list,
int ngramLength,
edu.illinois.cs.cogcomp.core.transformers.ITransformer<T,String> f) |
static <T> Set<Feature> |
FeatureNGramUtility.getNgramsUnordered(List<T> list,
int ngramLength,
edu.illinois.cs.cogcomp.core.transformers.ITransformer<T,String> f) |
Copyright © 2015. All rights reserved.