|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttextractor.datamodel.annotation.TextFragmentAnnotation
textractor.datamodel.annotation.DoubleTermAnnotation
public final class DoubleTermAnnotation
Stores two annotations about a text fragment. Annotations are produced by humans and entered into the database. This class supports this _process. example: --- 1 --- A|B:interaction|bind < enter ...
Created by IntelliJ IDEA. User: lshi Date: Apr 6, 2004 Time: 11:20:13 AM To change this template use File | Settings | File Templates.
| Field Summary | |
|---|---|
static String |
ANNOTATION_BIND
|
static String |
ANNOTATION_PHOSPHORYLATE
|
static int |
INT_ANNOTATION_BIND
|
static int |
INT_ANNOTATION_PHOSPHORYLATE
|
static Collection<String> |
isOneDirection
|
static int |
TERMA_NUMBER
|
static int |
TERMB_NUMBER
|
| Fields inherited from interface textractor.datamodel.annotation.AnnotationSource |
|---|
FIRST_TERM, SECOND_TERM |
| Constructor Summary | |
|---|---|
DoubleTermAnnotation()
Creates a new Double Term Annotation. |
|
DoubleTermAnnotation(int annotationBatch,
int annotationNumber)
|
|
| Method Summary | |
|---|---|
Object2IntMap<String> |
getAnnotationMap()
|
int |
getCenterPosition()
Calculates and returns the center of the terms described in this annotation. |
String |
getStringType()
Returns the type of this annotation as a String. |
AnnotatedTerm |
getTerm(int index)
Returns one of the terms that are the focus of this annotation. |
AnnotatedTerm |
getTermA()
|
AnnotatedTerm |
getTermB()
|
AnnotatedTerm |
getTermByNumber(int termNumber)
|
int |
getTermNumber()
Returns the number of terms in this annotation. |
void |
switchTerms()
|
| Methods inherited from class textractor.datamodel.annotation.TextFragmentAnnotation |
|---|
createAnnotatedTerm, createIndexedTerms, getAnnotation, getAnnotationBatchNumber, getAnnotationNumber, getBooleanAnnotation, getBooleanAnnotation, getCurrentText, getIndexedTerms, getIsSingleTerm, getSentence, getSpaceDelimitedIndexFormatTerms, isAnnotationImported, isSet, isUseSentenceText, setAnnotation, setAnnotation, setAnnotationImported, setCurrentText, setIndexedTerms, setIsSingleTerm, setSentence, setUseSentenceText |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int TERMA_NUMBER
public static final int TERMB_NUMBER
public static final String ANNOTATION_BIND
public static final String ANNOTATION_PHOSPHORYLATE
public static final int INT_ANNOTATION_BIND
public static final int INT_ANNOTATION_PHOSPHORYLATE
public static final Collection<String> isOneDirection
| Constructor Detail |
|---|
public DoubleTermAnnotation()
public DoubleTermAnnotation(int annotationBatch,
int annotationNumber)
| Method Detail |
|---|
public String getStringType()
TextFragmentAnnotation
getStringType in class TextFragmentAnnotationpublic int getCenterPosition()
public AnnotatedTerm getTerm(int index)
AnnotationSource
index - Index of the term in this annotation.
public int getTermNumber()
AnnotationSource
public AnnotatedTerm getTermA()
public AnnotatedTerm getTermB()
public AnnotatedTerm getTermByNumber(int termNumber)
public Object2IntMap<String> getAnnotationMap()
getAnnotationMap in class TextFragmentAnnotationpublic void switchTerms()
|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||