Examples of AnatomicalSiteMention


Examples of org.apache.ctakes.typesystem.type.textsem.AnatomicalSiteMention

        "PRP VBD DT JJ NN IN DT JJ JJ NN .");
    DiseaseDisorderMention fracture = new DiseaseDisorderMention(jCas, 16, 24);
    fracture.setTypeID(CONST.NE_TYPE_ID_DISORDER);
    fracture.addToIndexes();
    assertEquals("fracture", fracture.getCoveredText());
    AnatomicalSiteMention fibula = new AnatomicalSiteMention(jCas, 32, 53);
    fibula.setTypeID(CONST.NE_TYPE_ID_ANATOMICAL_SITE);
    fibula.addToIndexes();
    assertEquals("proximal right fibula", fibula.getCoveredText());

    // run the analysis engine
    engine.process(jCas);

    // test the modifier annotator
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.