Package backend.nlp
Class XmiAnnotationImporter
java.lang.Object
backend.nlp.XmiAnnotationImporter
This class imports XMI annotations from the folder
"src/main/resources/import/xmiAnnotations".
All XMI files found in the folder are deserialized into a JCas object.
- Author:
- Kai
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidimportAnnotations(String externalFolderPath) Reads all XMI files from the external folder and loads these annotations into a JCas object.static void
-
Constructor Details
-
XmiAnnotationImporter
public XmiAnnotationImporter()
-
-
Method Details
-
main
-
importAnnotations
Reads all XMI files from the external folder and loads these annotations into a JCas object.- Throws:
IOException- if the folder or the files are not found.Exception- if an error occurs during the deserialization process.
-