public class ChunkedExtraction extends ChunkedSentence
ChunkedSentence object.NP_LAYER, offsets, POS_LAYER, TOKEN_LAYER| Constructor and Description |
|---|
ChunkedExtraction(ChunkedSentence sent,
edu.washington.cs.knowitall.commonlib.Range range)
Constructs a new
ChunkedExtraction object representing range in
the sentence sent. |
ChunkedExtraction(ChunkedSentence sent,
edu.washington.cs.knowitall.commonlib.Range range,
String string)
Constructs a new
NpChunkedExtraction object representing
range in the sentence sent. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
edu.washington.cs.knowitall.commonlib.Range |
getRange() |
ChunkedSentence |
getSentence() |
int |
getStart() |
String |
getText() |
int |
hashCode() |
boolean |
isAdjacentOrOverlaps(ChunkedExtraction extr) |
boolean |
overlapsWith(ChunkedExtraction extr) |
String |
toString() |
clone, getChunkTag, getChunkTags, getChunkTags, getChunkTags, getChunkTagsAsString, getNpChunkRanges, getOffsets, getOffsetsAsString, getPosTag, getPosTags, getPosTags, getPosTags, getPosTagsAsString, getPosTagsAsString, getPosTagsAsString, getSubSequence, getSubSequence, getToken, getTokenRange, getTokens, getTokens, getTokens, getTokensAsString, getTokensAsString, getTokensAsString, toOpenNlpFormataddSpanLayer, addSpanLayerRanges, getSpans, getSpans, getSubSequence, getSubSequence, isSpanLayeraddLayer, addLayer, addLayer, get, getLayer, getLayerAsString, getLayerAsString, getLayerAsString, getLayerNames, getLength, getNumLayers, hasLayerpublic ChunkedExtraction(ChunkedSentence sent, edu.washington.cs.knowitall.commonlib.Range range)
ChunkedExtraction object representing range in
the sentence sent. range must be a subset of [0, sent.getLength()
).sent - the source sentence.range - the subsequence of sent that this extraction will represent.public ChunkedExtraction(ChunkedSentence sent, edu.washington.cs.knowitall.commonlib.Range range, String string)
NpChunkedExtraction object representing
range in the sentence sent. range
must be a subset of [0, sent.getLength()).sent - the source sentence.range - the subsequence of sent that this extraction will
represent.string - a string representation of the relation part, usually
different than just the subsequence in the sentence.public int getStart()
public edu.washington.cs.knowitall.commonlib.Range getRange()
getRange in class ChunkedSentenceRange object that represents the subsequence in
the source sentence.public ChunkedSentence getSentence()
public boolean isAdjacentOrOverlaps(ChunkedExtraction extr)
extr - public boolean overlapsWith(ChunkedExtraction extr)
extr - public int hashCode()
hashCode in class SimpleLayeredSequencepublic boolean equals(Object obj)
equals in class SimpleLayeredSequencepublic String getText()
public String toString()
toString in class ChunkedSentenceCopyright © 2010-2013 University of Washington CSE. All Rights Reserved.