Textractor API textractor-720 (20091120123250)

textractor.datamodel.annotation
Class AnnotatedTerm

java.lang.Object
  extended by textractor.datamodel.annotation.AnnotatedTerm

public final class AnnotatedTerm
extends Object

Created by IntelliJ IDEA. User: lshi Date: Apr 7, 2004 Time: 11:54:48 AM To change this template use File | Settings | File Templates.


Constructor Summary
AnnotatedTerm()
           
 
Method Summary
 int getEndPosition()
          Obtain the end position of the AnnotatedTerm to which this annotation refers to.
 int getStartPosition()
          Obtain the start position of the AnnotatedTerm to which this annotation refers to.
 int getTermLength()
           
 String getTermText()
           
 void setStartPosition(int start)
          Sets the position of the AnnotatedTerm to which this annotation refers to.
 void setText(String text, int startPosition)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotatedTerm

public AnnotatedTerm()
Method Detail

setText

public void setText(String text,
                    int startPosition)

getTermText

public String getTermText()

setStartPosition

public void setStartPosition(int start)
Sets the position of the AnnotatedTerm to which this annotation refers to.

Parameters:
start - Position of the AnnotatedTerm in the sentence (assuming words are separated by spaces or newlines). Position 0 is the first word of the sentence.

getStartPosition

public int getStartPosition()
Obtain the start position of the AnnotatedTerm to which this annotation refers to.

Returns:
Returns the position, or -1 if no position has been specified.

getEndPosition

public int getEndPosition()
Obtain the end position of the AnnotatedTerm to which this annotation refers to.

Returns:
Returns the position, or -1 if no position has been specified.

getTermLength

public int getTermLength()

Textractor API textractor-720 (20091120123250)

Copyright © 2003-2008 Institute for Computational Biomedicine, All Rights Reserved.