edu.washington.cs.knowitall.extractor.conf.featureset
Class ChunkFeature
java.lang.Object
edu.washington.cs.knowitall.extractor.conf.featureset.ExtractionFeature
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
| 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 |
ChunkFeature
public ChunkFeature(String... givenTokens)
ChunkFeature
public ChunkFeature(Collection<String> givenChunkTags)
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.