Package org.apache.uima.analysis_engine

Examples of org.apache.uima.analysis_engine.AnalysisEngine.newJCas()


        AnalysisEngine ae = aeProvider.getAE();

        /*
         * create a JCas which contain the text to analyze
         */
        JCas jcas = ae.newJCas();
        jcas.setDocumentText(textFieldValue);

        /*
         * perform analysis on text field
         */
 
View Full Code Here


    AnalysisEngineDescription aggregate = createEngineDescription(
        sentenceDetector, tokenizer, parser);
    AnalysisEngine engine = createEngine(aggregate);

    String text = "The meeting was moved from Yorktown 01-144 to Hawthorne 1S-W33.";
    JCas jCas = engine.newJCas();
    jCas.setDocumentText(text);
    engine.process(jCas);

    for (Sentence sentence : select(jCas, Sentence.class)) {
      System.out.println("Sentence : " + sentence.getCoveredText());
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.