| Modifier and Type | Method and Description |
|---|---|
String |
annotate(String original)
The format of an annotated text is XML.
|
void |
close() |
ArrayList |
extractEntities(String content)
Extract entities from a given text.
|
ArrayList |
extractFromDoc(Document doc)
The return format is the same as the one by the method extractFromSentence.
|
ArrayList |
extractFromSentence(Sentence sent)
Difering from the method extractEntites, this method will save an entity in a term and thus all information such as entity type
is kept.
|
void |
initAnnie(String gateHome) |
void |
setAnnotationTypes(String[] arrType)
Set the entity types of interest, for example, organization, location, person, etc.
|
public void setAnnotationTypes(String[] arrType)
NERsetAnnotationTypes in interface NERarrType - a set of wanted entity types.public void close()
public ArrayList extractEntities(String content)
NERextractEntities in interface NERcontent - the text for processingpublic ArrayList extractFromDoc(Document doc)
NERextractFromDoc in interface NERdoc - a parsed documentpublic ArrayList extractFromSentence(Sentence sent)
NERextractFromSentence in interface NERsent - the sentence for extractionCopyright © 2018 JULIE Lab, Germany. All rights reserved.