|
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.SingleTermAnnotation
public final class SingleTermAnnotation
Stores single annotation about a text fragment. Annotation is produced by humans and entered into the database. This class supports this _process. example: --- 1 --- A:protein < enter ... Created by IntelliJ IDEA. User: lshi Date: Apr 6, 2004 Time: 11:18:29 AM To change this template use File | Settings | File Templates.
| Field Summary | |
|---|---|
static String |
ANNOTATION_MULTICLASS
|
static String |
ANNOTATION_MUTATION
|
static String |
ANNOTATION_PROTEIN
|
static int |
INT_ANNOTATION_MULTICLASS
|
static int |
INT_ANNOTATION_MUTATION
|
static int |
INT_ANNOTATION_PROTEIN
|
| Fields inherited from interface textractor.datamodel.annotation.AnnotationSource |
|---|
FIRST_TERM, SECOND_TERM |
| Constructor Summary | |
|---|---|
SingleTermAnnotation()
Creates a new Single Term Annotation. |
|
SingleTermAnnotation(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()
|
AnnotatedTerm |
getTerm(int index)
Returns one of the terms that are the focus of this annotation. |
int |
getTermNumber()
Returns the number of terms in this annotation. |
| 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 String ANNOTATION_MUTATION
public static final String ANNOTATION_PROTEIN
public static final String ANNOTATION_MULTICLASS
public static final int INT_ANNOTATION_MUTATION
public static final int INT_ANNOTATION_PROTEIN
public static final int INT_ANNOTATION_MULTICLASS
| Constructor Detail |
|---|
public SingleTermAnnotation()
public SingleTermAnnotation(int annotationBatch,
int annotationNumber)
| Method Detail |
|---|
public AnnotatedTerm getTerm()
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 Object2IntMap<String> getAnnotationMap()
getAnnotationMap in class TextFragmentAnnotation
|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||