edu.washington.cs.knowitall.extractor.conf.featureset
Class VerbTokenFeature
java.lang.Object
edu.washington.cs.knowitall.extractor.conf.featureset.ExtractionFeature
edu.washington.cs.knowitall.extractor.conf.featureset.VerbTokenFeature
- All Implemented Interfaces:
- com.google.common.base.Predicate<ChunkedBinaryExtraction>
public abstract class VerbTokenFeature
- extends ExtractionFeature
Parent class for any feature that considers only tokens whose corresponding
pos starts with "V" or equals "MD".
- Author:
- Rob
| 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 |
VerbTokenFeature
public VerbTokenFeature(String... givenTokens)
VerbTokenFeature
public VerbTokenFeature(Collection<String> givenTokens)
rangeToExamine
protected abstract edu.washington.cs.knowitall.commonlib.Range rangeToExamine(ChunkedBinaryExtraction cbe)
- Specified by:
rangeToExamine in class ExtractionFeature
testAtIndex
protected boolean testAtIndex(Integer index,
ChunkedSentence sentence)
- Specified by:
testAtIndex in class ExtractionFeature
withinArg2
public static VerbTokenFeature withinArg2(String... tokens)
withinRel
public static VerbTokenFeature withinRel(String... tokens)
rightBeforeArg1
public static VerbTokenFeature rightBeforeArg1(Collection<String> tokens)
rightBeforeArg1
public static VerbTokenFeature rightBeforeArg1(String... tokens)
relationHeadVerb
public static VerbTokenFeature relationHeadVerb(Collection<String> tokens)
rightAfterArg2
public static VerbTokenFeature rightAfterArg2(String... tokens)
anywhereBeforeArg1
public static VerbTokenFeature anywhereBeforeArg1(Collection<String> tokens)
anywhereAfterArg2
public static VerbTokenFeature anywhereAfterArg2(Collection<String> tokens)
relSingleToken
public static VerbTokenFeature relSingleToken(Collection<String> tokens)
Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.