Package org.apache.uima.analysis_engine

Examples of org.apache.uima.analysis_engine.AnalysisEngineDescription.toXML()


    String outputFilePath = outputFile.getAbsolutePath();
    System.out.println("output descriptor file: " + outputFilePath);
   
    AnalysisEngineDescription description = builder.createAggregateDescription();
   
    description.toXML(outputStream);
  }
 
  public void createZonerNormalDescriptor() throws Exception
  {
    AggregateBuilder builder = new AggregateBuilder();
View Full Code Here


    File outputFile = new File("desc/analysis_engine/assertion_zoner__normal.xml");
    FileOutputStream outputStream = new FileOutputStream(outputFile);
    String outputFilePath = outputFile.getAbsolutePath();
    System.out.println("output descriptor file: " + outputFilePath);
   
    zonerAnnotator.toXML(outputStream);
  }
 
  public void createZonerMayoDescriptor() throws Exception
  {
    AggregateBuilder builder = new AggregateBuilder();
View Full Code Here

    File outputFile = new File("desc/analysis_engine/assertion_zoner__mayo.xml");
    FileOutputStream outputStream = new FileOutputStream(outputFile);
    String outputFilePath = outputFile.getAbsolutePath();
    System.out.println("output descriptor file: " + outputFilePath);
   
    zonerAnnotator.toXML(outputStream);
  }
 
 
}
View Full Code Here

    for(IdentifiedAnnotation entity : JCasUtil.select(jcas, IdentifiedAnnotation.class)){
      System.out.println("Entity: " + entity.getCoveredText() + " === Polarity: " + entity.getPolarity());
    }
   
    if(args.length > 0)
      aed.toXML(new FileWriter(args[0]));
  }
}
View Full Code Here

   
    FileOutputStream outputStream = new FileOutputStream("desc/analysis_engine/assertion_train.xml");
   
    AnalysisEngineDescription description = builder.createAggregateDescription();
   
    description.toXML(outputStream);
  }

  public void createTestDescriptor() throws Exception
  {
    File testDirectory = new File("/tmp/assertion_data/test");
View Full Code Here

   
    FileOutputStream outputStream = new FileOutputStream("desc/analysis_engine/assertion_test.xml");
   
    AnalysisEngineDescription description = builder.createAggregateDescription();
   
    description.toXML(outputStream);
  }
 
 
}
View Full Code Here

            UimaAcronymAnnotator.class,
            UimaAcronymAnnotator.RES_ACRONYM_TABLE,
            createExternalResourceDescription(StringMapResource_impl.class,
                    "file:org/apache/uima/fit/examples/tutorial/ex6/uimaAcronyms.txt"));
   
    aed.toXML(new FileOutputStream(new File(outputDirectory, "UimaAcronymAnnotator.xml")));
  }
}
View Full Code Here

            UimaAcronymAnnotator.RES_ACRONYM_TABLE, resource));
    builder.add(createEngineDescription(UimaMeetingAnnotator.class,
            UimaMeetingAnnotator.RES_UIMA_TERM_TABLE, resource));
    AnalysisEngineDescription aggregate = builder.createAggregateDescription();

    aggregate.toXML(new FileOutputStream(new File(outputDirectory, "UimaMeetingDetectorTAE.xml")));
  }
}
View Full Code Here

                    "uimaFIT");

    // Write the descriptor to an XML file
    File output = new File("target/examples/GetStartedQuickAE.xml");
    output.getParentFile().mkdirs();
    analysisEngineDescription.toXML(new FileOutputStream(output));
  }
}
View Full Code Here

  public static void main(String[] args) throws Exception {
    File outputDirectory = new File("target/examples/ex1/");
    outputDirectory.mkdirs();
    AnalysisEngineDescription aed = AnalysisEngineFactory
            .createEngineDescription(RoomNumberAnnotator.class);
    aed.toXML(new FileOutputStream(new File(outputDirectory, "RoomNumberAnnotator.xml")));
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.