edu.washington.cs.knowitall.extraction
Class Extraction

java.lang.Object
  extended by edu.washington.cs.knowitall.sequence.SimpleLayeredSequence
      extended by edu.washington.cs.knowitall.sequence.BIOLayeredSequence
          extended by edu.washington.cs.knowitall.nlp.ChunkedSentence
              extended by edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction
                  extended by edu.washington.cs.knowitall.extraction.Extraction
All Implemented Interfaces:
edu.washington.cs.knowitall.sequence.LayeredSequence, TokenSequence, XmlSerializable, Serializable
Direct Known Subclasses:
ArgumentExtraction, PredicateExtraction

public class Extraction
extends edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction
implements TokenSequence, Serializable, XmlSerializable

A subsequence of a sentence.

Author:
schmmd
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.washington.cs.knowitall.nlp.ChunkedSentence
NP_LAYER, POS_LAYER, TOKEN_LAYER
 
Constructor Summary
Extraction(Sentence sent, edu.washington.cs.knowitall.commonlib.Range range)
           
Extraction(Sentence sent, edu.washington.cs.knowitall.commonlib.Range range, String string)
           
 
Method Summary
 boolean equals(Object that)
           
 List<String> getLemmas()
           
 Sentence getSentence()
           
 List<Type> getTypes()
           
 void tag(Iterable<Type> types)
           
 void tag(Type tag)
           
 org.jdom.Element toXmlElement()
           
 List<Token> zip()
           
 
Methods inherited from class edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction
getRange, getStart, hashCode, isAdjacentOrOverlaps, overlapsWith, toString
 
Methods inherited from class edu.washington.cs.knowitall.nlp.ChunkedSentence
clone, getChunkTag, getChunkTags, getChunkTags, getChunkTags, getChunkTagsAsString, getNpChunkRanges, getPosTag, getPosTags, getPosTags, getPosTags, getPosTagsAsString, getPosTagsAsString, getPosTagsAsString, getSubSequence, getSubSequence, getToken, getTokenRange, getTokens, getTokens, getTokens, getTokensAsString, getTokensAsString, getTokensAsString, toOpenNlpFormat
 
Methods inherited from class edu.washington.cs.knowitall.sequence.BIOLayeredSequence
addSpanLayer, addSpanLayerRanges, getSpans, getSpans, getSubSequence, getSubSequence, isSpanLayer
 
Methods inherited from class edu.washington.cs.knowitall.sequence.SimpleLayeredSequence
addLayer, addLayer, addLayer, get, getLayer, getLayerAsString, getLayerAsString, getLayerAsString, getLayerNames, getLength, getNumLayers, hasLayer
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface edu.washington.cs.knowitall.TokenSequence
getChunkTags, getPosTags, getTokens, getTokensAsString
 

Constructor Detail

Extraction

public Extraction(Sentence sent,
                  edu.washington.cs.knowitall.commonlib.Range range,
                  String string)

Extraction

public Extraction(Sentence sent,
                  edu.washington.cs.knowitall.commonlib.Range range)
Method Detail

equals

public boolean equals(Object that)
Overrides:
equals in class edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction

tag

public void tag(Type tag)

tag

public void tag(Iterable<Type> types)

getTypes

public List<Type> getTypes()
Specified by:
getTypes in interface TokenSequence

getSentence

public Sentence getSentence()
Overrides:
getSentence in class edu.washington.cs.knowitall.nlp.extraction.ChunkedExtraction

toXmlElement

public org.jdom.Element toXmlElement()
Specified by:
toXmlElement in interface XmlSerializable

getLemmas

public List<String> getLemmas()
Specified by:
getLemmas in interface TokenSequence

zip

public List<Token> zip()
Specified by:
zip in interface TokenSequence


Copyright © 2011 University of Washington CSE. All Rights Reserved.