edu.stanford.nlp.ie.machinereading.domains.ace.reader
Class AceCharSeq

java.lang.Object
  extended by edu.stanford.nlp.ie.machinereading.domains.ace.reader.AceCharSeq

public class AceCharSeq
extends java.lang.Object

Implements the ACE construct


Constructor Summary
AceCharSeq(java.lang.String text, int start, int end)
          Token that incorporates this whole char sequence, e.g.
 
Method Summary
 int getByteEnd()
           
 Span getByteOffset()
           
 int getByteStart()
           
 java.lang.String getText()
           
 int getTokenEnd()
           
 Span getTokenOffset()
           
 int getTokenStart()
           
 void match(java.util.Vector<AceToken> tokens)
          Matches this char seq against the full token stream As a result of this method mTokenOffset is initialized
 java.lang.String toString()
           
 java.lang.String toXml(int offset)
           
 java.lang.String toXml(java.lang.String label, int offset)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AceCharSeq

public AceCharSeq(java.lang.String text,
                  int start,
                  int end)
Token that incorporates this whole char sequence, e.g. "George_Bush/NNP_NNP" for the text "George Bush" XXX: not used anymore

Method Detail

toXml

public java.lang.String toXml(java.lang.String label,
                              int offset)

toXml

public java.lang.String toXml(int offset)

getText

public java.lang.String getText()

getByteStart

public int getByteStart()

getByteEnd

public int getByteEnd()

getByteOffset

public Span getByteOffset()

getTokenStart

public int getTokenStart()

getTokenEnd

public int getTokenEnd()

getTokenOffset

public Span getTokenOffset()

match

public void match(java.util.Vector<AceToken> tokens)
           throws MatchException
Matches this char seq against the full token stream As a result of this method mTokenOffset is initialized

Throws:
MatchException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Stanford NLP Group