public abstract class PosFeature extends ExtractionFeature
| Modifier and Type | Field and Description |
|---|---|
static String[] |
allVerbPosTags |
stemmer| Constructor and Description |
|---|
PosFeature(Collection<String> posTags) |
PosFeature(String... posTags) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract edu.washington.cs.knowitall.commonlib.Range |
rangeToExamine(ChunkedBinaryExtraction cbe)
Given a ChunkedBinaryExtraction, I need the implementation to tell me at
which indices to test my predicate.
|
static PosFeature |
relSingleVerb()
Get a feature that fires if any pos tag from posTags is present within a
given single verb relation (false if multiple-token rel)
|
static PosFeature |
rightAfterArg2(String... posTags)
Get a feature that fires if any pos tag from posTags is present at the
index immediately after arg2.
|
static PosFeature |
rightBeforeArg1(String... posTags)
Get a feature that fires if any pos tag from posTags is present at the
index immediately before arg1.
|
static PosFeature |
rightBeforeRel(String... posTags)
Get a feature that fires if any pos tag from posTags is present
immediately before the relation.
|
protected boolean |
testAtIndex(Integer index,
ChunkedSentence sentence) |
static PosFeature |
withinArg1(String... posTags)
Get a feature that fires if any pos tag from posTags is present within
Arg 1.
|
static PosFeature |
withinArg2(String... posTags)
Get a feature that fires if any pos tag from posTags is present within
Arg 2.
|
static PosFeature |
withinRel(String... posTags)
Get a feature that fires if any pos tag from posTags is present within
the relation.
|
apply, indexOfHeadVerbpublic static final String[] allVerbPosTags
public PosFeature(String... posTags)
public PosFeature(Collection<String> posTags)
protected boolean testAtIndex(Integer index, ChunkedSentence sentence)
testAtIndex in class ExtractionFeatureprotected abstract edu.washington.cs.knowitall.commonlib.Range rangeToExamine(ChunkedBinaryExtraction cbe)
rangeToExamine in class ExtractionFeaturepublic static PosFeature withinArg2(String... posTags)
posTags - public static PosFeature withinArg1(String... posTags)
posTags - public static PosFeature relSingleVerb()
posTags - public static PosFeature withinRel(String... posTags)
posTags - public static PosFeature rightBeforeArg1(String... posTags)
posTags - public static PosFeature rightAfterArg2(String... posTags)
posTags - public static PosFeature rightBeforeRel(String... posTags)
posTags - Copyright © 2010-2013 University of Washington CSE. All Rights Reserved.