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

java.lang.Object
  extended by edu.washington.cs.knowitall.extractor.conf.featureset.ExtractionFeature
      extended by edu.washington.cs.knowitall.extractor.conf.featureset.PosFeature
All Implemented Interfaces:
com.google.common.base.Predicate<ChunkedBinaryExtraction>

public abstract class PosFeature
extends ExtractionFeature

Parent class for any feature specific to the POS layer

Author:
Rob

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

allVerbPosTags

public static final String[] allVerbPosTags
Constructor Detail

PosFeature

public PosFeature(String... posTags)

PosFeature

public PosFeature(Collection<String> posTags)
Method Detail

testAtIndex

protected boolean testAtIndex(Integer index,
                              ChunkedSentence sentence)
Specified by:
testAtIndex in class ExtractionFeature

rangeToExamine

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.

Specified by:
rangeToExamine in class ExtractionFeature
Returns:

withinArg2

public static PosFeature withinArg2(String... posTags)
Get a feature that fires if any pos tag from posTags is present within Arg 2.

Parameters:
posTags -
Returns:

withinArg1

public static PosFeature withinArg1(String... posTags)
Get a feature that fires if any pos tag from posTags is present within Arg 1.

Parameters:
posTags -
Returns:

relSingleVerb

public 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)

Parameters:
posTags -
Returns:

withinRel

public static PosFeature withinRel(String... posTags)
Get a feature that fires if any pos tag from posTags is present within the relation.

Parameters:
posTags -
Returns:

rightBeforeArg1

public static PosFeature rightBeforeArg1(String... posTags)
Get a feature that fires if any pos tag from posTags is present at the index immediately before arg1.

Parameters:
posTags -
Returns:

rightAfterArg2

public static PosFeature rightAfterArg2(String... posTags)
Get a feature that fires if any pos tag from posTags is present at the index immediately after arg2.

Parameters:
posTags -
Returns:

rightBeforeRel

public static PosFeature rightBeforeRel(String... posTags)
Get a feature that fires if any pos tag from posTags is present immediately before the relation.

Parameters:
posTags -
Returns:


Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.