|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AnnotationSource
A source of annotation information. Implementations of this interface do not need to be persistent in the way TextFragmentAnnotation is. The interface has all the methods needed to support the export of SVM features.
| Field Summary | |
|---|---|
static int |
FIRST_TERM
|
static int |
SECOND_TERM
|
| Method Summary | |
|---|---|
void |
createIndexedTerms(DocumentIndexManager manager)
Instructs this annotation to created indexed terms if they do not already exist. |
boolean |
getBooleanAnnotation(String annotationType)
Obtain the annotation corresponding to the type. |
int |
getCenterPosition()
Calculates and returns the center of the terms described in this annotation. |
String |
getCurrentText(DocumentIndexManager manager)
Obtain the text of this annotation. |
int[] |
getIndexedTerms()
Returns the text of this annotation in its indexed form. |
Sentence |
getSentence()
Returns the sentence associated with this annotation. |
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. |
| Field Detail |
|---|
static final int FIRST_TERM
static final int SECOND_TERM
| Method Detail |
|---|
String getCurrentText(DocumentIndexManager manager)
manager - The document manager that will be used to obtain
the text.
Sentence getSentence()
int[] getIndexedTerms()
int getCenterPosition()
void createIndexedTerms(DocumentIndexManager manager)
manager - The document manager that will be used to obtain
the indexed form of the terms.boolean getBooleanAnnotation(String annotationType)
annotationType - The type of annotation that should be retrieved.
AnnotatedTerm getTerm(int index)
index - Index of the term in this annotation.
int getTermNumber()
|
Textractor API textractor-720 (20091120123250) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||