public abstract class TokenFeature extends ExtractionFeature
stemmer| Constructor and Description |
|---|
TokenFeature(Collection<String> givenTokens) |
TokenFeature(String... givenTokens) |
| Modifier and Type | Method and Description |
|---|---|
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
|
apply, indexOfHeadVerbpublic TokenFeature(String... givenTokens)
public TokenFeature(Collection<String> givenTokens)
protected abstract edu.washington.cs.knowitall.commonlib.Range rangeToExamine(ChunkedBinaryExtraction cbe)
rangeToExamine in class ExtractionFeatureprotected 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 - Copyright © 2010-2013 University of Washington CSE. All Rights Reserved.