edu.washington.cs.knowitall.extractor.conf.featureset
Class VerbTokenFeature

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.conf.featureset.ExtractionFeature
      extended by 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

Field Summary
 
Fields inherited from class edu.washington.cs.knowitall.extractor.conf.featureset.ExtractionFeature
stemmer
 
Constructor Summary
VerbTokenFeature(Collection<String> givenTokens)
           
VerbTokenFeature(String... givenTokens)
           
 
Method Summary
static VerbTokenFeature anywhereAfterArg2(Collection<String> tokens)
           
static VerbTokenFeature anywhereBeforeArg1(Collection<String> tokens)
           
protected abstract  edu.washington.cs.knowitall.commonlib.Range rangeToExamine(ChunkedBinaryExtraction cbe)
           
static VerbTokenFeature relationHeadVerb(Collection<String> tokens)
           
static VerbTokenFeature relSingleToken(Collection<String> tokens)
           
static VerbTokenFeature rightAfterArg2(String... tokens)
           
static VerbTokenFeature rightBeforeArg1(Collection<String> tokens)
           
static VerbTokenFeature rightBeforeArg1(String... tokens)
           
protected  boolean testAtIndex(Integer index, ChunkedSentence sentence)
           
static VerbTokenFeature withinArg2(String... tokens)
           
static VerbTokenFeature withinRel(String... tokens)
           
 
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

VerbTokenFeature

public VerbTokenFeature(String... givenTokens)

VerbTokenFeature

public VerbTokenFeature(Collection<String> givenTokens)
Method Detail

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.