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> |
ParseHeadWordFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
AttributeFeature.getFeatures(Constituent c) |
Set<Feature> |
ContextFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
TokenPrefixFeatureExtractor.getFeatures(Constituent c) |
abstract Set<Feature> |
LBJavaFeatureExtractor.getFeatures(Constituent instance) |
Set<Feature> |
ListFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
ConditionalFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
FeatureCollection.getFeatures(Constituent c) |
Set<Feature> |
FeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
RegexFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
DependencyModifierFeatureExtractor.getFeatures(Constituent c) |
Set<Feature> |
CachedFeatureCollection.getFeatures(Constituent candidate) |
Set<Feature> |
CurrencyIndicator.getFeatures(Constituent c) |
Set<Feature> |
ChunkPropertyIndicator.getFeatures(Constituent c) |
Set<Feature> |
WordFeatureExtractor.getFeatures(Constituent c) |
static Set<Feature> |
FeatureUtilities.getFeatures(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> |
NgramFeatureExtractor.getWordFeatures(TextAnnotation ta,
int wordPosition) |
Set<Feature> |
SuffixFeatureExtractor.getWordFeatures(TextAnnotation ta,
int wordPosition) |
Set<Feature> |
PrefixFeatureExtractor.getWordFeatures(TextAnnotation ta,
int wordPosition) |
abstract Set<Feature> |
WordFeatureExtractor.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 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,
ITransformer<T,String> f) |
static <T> Set<Feature> |
FeatureNGramUtility.getNgramsUnordered(List<T> list,
int ngramLength,
ITransformer<T,String> f) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
GazetteerWindowTwo.getFeatures(Constituent c) |
Set<Feature> |
WordEmbeddingWindow.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
POSContextWindowTwo.getFeatures(Constituent c) |
Set<Feature> |
SrlSenseFeatures.getFeatures(Constituent c) |
Set<Feature> |
WordAndPos.getFeatures(Constituent c) |
Set<Feature> |
WordContextWindowTwo.getFeatures(Constituent c) |
Set<Feature> |
ParseSibling.getFeatures(Constituent c) |
Set<Feature> |
SrlWordFeatures.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
SrlNomArgumentFeatures.getFeatures(Constituent c) |
Set<Feature> |
SrlNomArgumentFeatureConjunction.getFeatures(Constituent c) |
Set<Feature> |
SrlNomClassifierPredicateFeatures.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
SrlNomHeadWordFeatures.getFeatures(Constituent c) |
Set<Feature> |
SrlNomIdentifierPredicateFeatures.getFeatures(Constituent c) |
Set<Feature> |
SrlNomIdentifier.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
SrlNomPredicateFeatures.getFeatures(Constituent c) |
Set<Feature> |
NomLexClassAndSrlNomPredicateFeatures.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
LemmaAndSrlNomSense.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
SrlVerbPredicateFeatures.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
SrlVerbArgumentFeatures.getFeatures(Constituent c) |
Set<Feature> |
SrlVerbArgumentFeaturesConjunction.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
SrlVerbIdentifierArgumentFeatures.getFeatures(Constituent c) |
Set<Feature> |
SrlVerbIdentifierArgumentFeaturesConjunction.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
SrlVerbSimplePredicateFeatures.getFeatures(Constituent c) |
Set<Feature> |
RenamedSrlVerbSimplePredicateFeatures.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
LemmaAndSrlSense.getFeatures(Constituent c) |
Modifier and Type | Method and Description |
---|---|
String |
WriteSVMLightFormat.writeFeatureExample(String label,
Collection<Feature> activeFeatures)
Generate a String value corresponding to a SVMLight format example from Edison feature
representation (String label and Collection of Feature).
|
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
WordBigrams.getFeatures(Constituent instance) |
Set<Feature> |
POSBigrams.getFeatures(Constituent instance) |
Set<Feature> |
PrepSRLFeatures.getFeatures(Constituent instance) |
Set<Feature> |
WordContextBigrams.getFeatures(Constituent instance) |
Set<Feature> |
POSContextBigrams.getFeatures(Constituent instance) |
abstract Set<Feature> |
LBJavaFeatureExtractor.getFeatures(Constituent instance) |
Modifier and Type | Method and Description |
---|---|
Set<Feature> |
WordBigrams.getFeatures(Constituent instance) |
Set<Feature> |
ChunkEmbeddings.getFeatures(Constituent instance) |
Set<Feature> |
WordContextBigrams.getFeatures(Constituent instance) |
Set<Feature> |
POSContextBigrams.getFeatures(Constituent instance) |
Set<Feature> |
POSBigrams.getFeatures(Constituent instance) |
Set<Feature> |
Capitalization.getFeatures(Constituent instance) |
Set<Feature> |
ChunkContextBigrams.getFeatures(Constituent instance) |
abstract Set<Feature> |
LBJavaFeatureExtractor.getFeatures(Constituent instance) |
Set<Feature> |
Contains.getFeatures(Constituent instance) |
Modifier and Type | Method and Description |
---|---|
void |
SenseInstance.cacheFeatureVector(Set<Feature> features) |
Copyright © 2017. All rights reserved.