|
||||||||||
| 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.PosFeature
public abstract class PosFeature
Parent class for any feature specific to the POS layer
| Field Summary | |
|---|---|
static String[] |
allVerbPosTags
|
| Fields inherited from class edu.washington.cs.knowitall.extractor.conf.featureset.ExtractionFeature |
|---|
stemmer |
| Constructor Summary | |
|---|---|
PosFeature(Collection<String> posTags)
|
|
PosFeature(String... posTags)
|
|
| Method Summary | |
|---|---|
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. |
| 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 |
| Field Detail |
|---|
public static final String[] allVerbPosTags
| Constructor Detail |
|---|
public PosFeature(String... posTags)
public PosFeature(Collection<String> posTags)
| Method Detail |
|---|
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 -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||