public class Annie
extends java.lang.Object
Adapted from the StandAloneAnnie sample program in the Gate distribution.
Modifier and Type | Field and Description |
---|---|
protected gate.creole.SerialAnalyserController |
annieController
Annie controller.
|
protected gate.Corpus |
corpus
Holds text to adorn with named entities.
|
protected static java.lang.String |
defaultAnnieResourcePath
Default resources path.
|
protected java.util.Set<java.lang.String> |
entityTypesWanted
Set of named entity types wanted.
|
Constructor and Description |
---|
Annie()
Create Annie annotator using default resource path.
|
Annie(java.lang.String annieResourcePath)
Create Annie annotator specifying resource path.
|
protected gate.creole.SerialAnalyserController annieController
protected gate.Corpus corpus
protected java.util.Set<java.lang.String> entityTypesWanted
protected static java.lang.String defaultAnnieResourcePath
public Annie() throws java.lang.Exception
java.lang.Exception
public Annie(java.lang.String annieResourcePath) throws java.lang.Exception
annieResourcePath
- The resource path.java.lang.Exception
public void initAnnie(java.lang.String annieResourcePath) throws java.lang.Exception
annieResourcePath
- The resource path.java.lang.Exception
public void close()
public java.lang.String adornText(java.lang.String text)
text
- Text to adorn with named entities.