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

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

public abstract class ChunkFeature
extends ExtractionFeature

Parent class for any feature specific to the chunk layer.

Author:
Rob

Field Summary
 
Fields inherited from class edu.washington.cs.knowitall.extractor.conf.featureset.ExtractionFeature
stemmer
 
Constructor Summary
ChunkFeature(Collection<String> givenChunkTags)
           
ChunkFeature(String... givenTokens)
           
 
Method Summary
protected abstract  edu.washington.cs.knowitall.commonlib.Range rangeToExamine(ChunkedBinaryExtraction cbe)
           
static ChunkFeature rightAfterArg2(String... chunkTags)
          Get an expandablePosFeature for tokens right before arg1.
static ChunkFeature rightBeforeArg1(String... chunkTags)
          Get an expandablePosFeature for tokens right before arg1.
protected  boolean testAtIndex(Integer index, ChunkedSentence sentence)
           
static ChunkFeature withinArg2(String... chunkTags)
          Get an expandablePosFeature for tokens right before arg1.
static ChunkFeature withinRel(String... chunkTags)
          Get an expandablePosFeature for tokens right before arg1.
 
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

ChunkFeature

public ChunkFeature(String... givenTokens)

ChunkFeature

public ChunkFeature(Collection<String> givenChunkTags)
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 ChunkFeature withinArg2(String... chunkTags)
Get an expandablePosFeature for tokens right before arg1.

Parameters:
posTags -
Returns:

withinRel

public static ChunkFeature withinRel(String... chunkTags)
Get an expandablePosFeature for tokens right before arg1.

Parameters:
chunkTags -
Returns:

rightBeforeArg1

public static ChunkFeature rightBeforeArg1(String... chunkTags)
Get an expandablePosFeature for tokens right before arg1.

Parameters:
chunkTags -
Returns:

rightAfterArg2

public static ChunkFeature rightAfterArg2(String... chunkTags)
Get an expandablePosFeature for tokens right before arg1.

Parameters:
chunkTags -
Returns:


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