|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.washington.cs.knowitall.extractor.conf.featureset.ExtractionFeature
edu.washington.cs.knowitall.extractor.conf.featureset.TokenFeature
public abstract class TokenFeature
Parent class for any feature that only considers the token layer.
| Field Summary |
|---|
| Fields inherited from class edu.washington.cs.knowitall.extractor.conf.featureset.ExtractionFeature |
|---|
stemmer |
| Constructor Summary | |
|---|---|
TokenFeature(Collection<String> givenTokens)
|
|
TokenFeature(String... givenTokens)
|
|
| Method Summary | |
|---|---|
static ExtractionFeature |
anywhereAfterArg2(Collection<String> tokens)
Get a feature that fires if any element of tokens is present at any index after arg2. |
static ExtractionFeature |
anywhereBeforeArg1(Collection<String> tokens)
Get a feature that fires if any element of tokens is present at any index prior to arg 1. |
protected abstract edu.washington.cs.knowitall.commonlib.Range |
rangeToExamine(ChunkedBinaryExtraction cbe)
|
static ExtractionFeature |
relationHeadVerb(Collection<String> tokens)
Get a feature that fires if any element of tokens is present at the index of the relation's head verb. |
static ExtractionFeature |
relSingleToken(Collection<String> tokens)
Get a feature that fires if any element of tokens is present in a single token relation (returns empty range if relation is longer than one token). |
static ExtractionFeature |
rightAfterArg2(String... tokens)
Get a feature that fires if any element of tokens is present at the index immediately after arg2. |
static ExtractionFeature |
rightBeforeArg1(Collection<String> tokens)
Get a feature that fires if any element of tokens is present at the index immediately before arg1 |
static ExtractionFeature |
rightBeforeArg1(String... tokens)
|
protected boolean |
testAtIndex(Integer index,
ChunkedSentence sentence)
|
static ExtractionFeature |
withinArg2(String... tokens)
Get a feature that fires if any element of tokens is present within arg2. |
static ExtractionFeature |
withinRel(String... tokens)
Get a feature that fires if any element of tokens is present within the relation |
| Methods inherited from class edu.washington.cs.knowitall.extractor.conf.featureset.ExtractionFeature |
|---|
apply, indexOfHeadVerb |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.google.common.base.Predicate |
|---|
equals |
| Constructor Detail |
|---|
public TokenFeature(String... givenTokens)
public TokenFeature(Collection<String> givenTokens)
| Method Detail |
|---|
protected abstract edu.washington.cs.knowitall.commonlib.Range rangeToExamine(ChunkedBinaryExtraction cbe)
rangeToExamine in class ExtractionFeature
protected boolean testAtIndex(Integer index,
ChunkedSentence sentence)
testAtIndex in class ExtractionFeaturepublic static ExtractionFeature withinArg2(String... tokens)
posTags -
public static ExtractionFeature withinRel(String... tokens)
posTags -
public static ExtractionFeature rightBeforeArg1(Collection<String> tokens)
posTags -
public static ExtractionFeature rightBeforeArg1(String... tokens)
public static ExtractionFeature relationHeadVerb(Collection<String> tokens)
posTags -
public static ExtractionFeature rightAfterArg2(String... tokens)
posTags -
public static ExtractionFeature anywhereBeforeArg1(Collection<String> tokens)
posTags -
public static ExtractionFeature anywhereAfterArg2(Collection<String> tokens)
posTags -
public static ExtractionFeature relSingleToken(Collection<String> tokens)
posTags -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||