edu.uchsc.ccp.knowtator.util
Class ExportAnnotations
java.lang.Object
edu.uchsc.ccp.knowtator.util.ExportAnnotations
public class ExportAnnotations
- extends Object
This class simply iterates over annotations and mentions in a Knowtator
project and accesses the slot values of each. The annotations are a flat data
structure so it is sufficient to simply iterate through them. The mentions
are recursively defined so iterating over them is slightly more complicated.
This code doesn't really do anything. If you were going to export the code to
xml or to UIMA you would want to do something with the data structures as you
accessed them.
This code does compile but it has not been run or tested. It is, however,
mostly code stolen from MergeAnnotations.java which does run and has been
"tested".
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExportAnnotations
public ExportAnnotations(Project project)
throws Exception
- Throws:
Exception
exportAnnotations
public void exportAnnotations()
exportMentions
public void exportMentions()