Package org.apache.uima.annotator.regex.impl

Examples of org.apache.uima.annotator.regex.impl.ConceptFileParser_impl


   */
  public void testSyntaxCheck() throws Exception {
    File conceptFile = JUnitExtension.getFile("conceptSyntax/syntaxCheck.xml");
    InputStream stream = new BufferedInputStream(new FileInputStream(conceptFile));
    //parse concept file
    ConceptFileParser parser = new ConceptFileParser_impl();
    Concept[] concepts = parser.parseConceptFile(conceptFile.getAbsolutePath(), stream);

    File outputFile = new File(conceptFile.getParent(), "syntaxCheck_current.txt");
    OutputStreamWriter fileWriter = new OutputStreamWriter(new FileOutputStream(outputFile, false),
            "UTF-8");

View Full Code Here


    File conceptFile = JUnitExtension.getFile("conceptSyntax/emptyFile.xml");
    InputStream stream = new BufferedInputStream(new FileInputStream(conceptFile));
   
    try {
      //parse empty concept file
      ConceptFileParser parser = new ConceptFileParser_impl();
      parser.parseConceptFile(conceptFile.getAbsolutePath(), stream);
    } catch (ResourceInitializationException ex) {
      //we get an exception... what is correct!
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.uima.annotator.regex.impl.ConceptFileParser_impl

Copyright © 2018 www.massapicom. 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.