|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Annotator
Common interface for all annotators. Each annotator will be called
from the Repository
to analyze each sentence and then
store the annotated text in a Lucene field while indexing.
Method Summary | |
---|---|
java.lang.String[] |
getAnnotatedText(java.lang.String annotationLabel)
Returns the pieces of text (words or phrases) in the text that are annotated with a particular label. |
java.lang.String |
getAnnotations(java.lang.String text)
This method returns the XML annotated version of a text. |
java.lang.String |
getFieldName()
The Lucene field name where this annotations are going to be stored. |
java.lang.Object |
getSchema()
The schema by which these annotations can be verified. |
java.util.ArrayList<java.lang.String> |
getTypes()
|
void |
init()
This method initialises any static attributes required for the annotator to run |
Method Detail |
---|
java.lang.String getAnnotations(java.lang.String text)
text
- the text to be annotated
java.lang.String getFieldName()
java.lang.Object getSchema()
java.lang.String[] getAnnotatedText(java.lang.String annotationLabel)
annotationLabel
- the label to search
void init()
java.util.ArrayList<java.lang.String> getTypes()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |