|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gate.creole.annic.test.AnnicIndexing
public class AnnicIndexing
The class is an example of how to index a corpus using the ANNIC functionalities. The class is used by the TestAnnic.java.
Constructor Summary | |
---|---|
AnnicIndexing()
Constructor |
Method Summary | |
---|---|
void |
execute()
This method creates a lucene index. |
String |
getAnnotationSetName()
Gets the annotation set name to be indexed |
String |
getBaseTokenAnnotationType()
Gets the base token annotation type |
Corpus |
getCorpus()
Gets the corpus to index |
List |
getFeaturesToExclude()
Gets the features of annotation to be excluded from being indexed |
URL |
getIndexOutputDirectoryLocation()
Gets the location of index output directory |
String |
getIndexUnitAnnotationType()
Gets the Index Unit Annotation type. |
void |
setAnnotationSetName(String annotationSetName)
Sets the annotation set name |
void |
setBaseTokenAnnotationType(String baseTokenAnnotationType)
Sets the base token annotation type |
void |
setCorpus(Corpus corpus)
Sets the corpus to index |
void |
setFeaturesToExclude(ArrayList<String> featuresToExclude)
Sets the features of annotations to be excluded from being indexed |
void |
setIndexOutputDirectoryLocation(URL dir)
Sets the location of index output directory |
void |
setIndexUnitAnnotationType(String indexUnitAnnotationType)
Sets the Index Unit annotation type. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnicIndexing() throws IOException
IOException
Method Detail |
---|
public void execute() throws ExecutionException
ExecutionException
public URL getIndexOutputDirectoryLocation()
public void setIndexOutputDirectoryLocation(URL dir)
dir
- public String getAnnotationSetName()
public void setAnnotationSetName(String annotationSetName)
annotationSetName
- public String getBaseTokenAnnotationType()
public void setBaseTokenAnnotationType(String baseTokenAnnotationType)
baseTokenAnnotationType
- public void setCorpus(Corpus corpus)
corpus
- public Corpus getCorpus()
public List getFeaturesToExclude()
public void setFeaturesToExclude(ArrayList<String> featuresToExclude)
featuresToExclude
- public String getIndexUnitAnnotationType()
public void setIndexUnitAnnotationType(String indexUnitAnnotationType)
indexUnitAnnotationType
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |