Package backend.nlp

Class XmiAnnotationImporter

java.lang.Object
backend.nlp.XmiAnnotationImporter

public class XmiAnnotationImporter extends Object
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 Details

    • XmiAnnotationImporter

      public XmiAnnotationImporter()
  • Method Details

    • main

      public static void main(String[] args)
    • importAnnotations

      public void importAnnotations(String externalFolderPath) throws Exception
      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.