Package org.apache.uima.jcas.tcas

Examples of org.apache.uima.jcas.tcas.DocumentAnnotation


        sEntity = s;
        break;
      }
    }
   
    DocumentAnnotation docAnnot = null;
   
    Collection<DocumentAnnotation> docAnnots =
        JCasUtil.select(jCas, DocumentAnnotation.class);
   
    if (!docAnnots.isEmpty())
    {
      Object[] docAnnotArray = docAnnots.toArray();
      docAnnot = (DocumentAnnotation) docAnnotArray[0];
    }
   
    if (sEntity!=null) {
     
      // but I actually need to find out if this sentence is preceded by
      // a newline or if I have to find the preceding one that does.
      if (docAnnot != null)
      {
        String doctext = docAnnot.getCoveredText();
        int sentStart = sEntity.getBegin();
       
        if (sentStart > 0)
        {
          boolean argInHistSection = false;
View Full Code Here


        sEntity = s;
        break;
      }
    }
   
    DocumentAnnotation docAnnot = null;
   
    Collection<DocumentAnnotation> docAnnots =
        JCasUtil.select(jCas, DocumentAnnotation.class);
   
    if (!docAnnots.isEmpty())
    {
      Object[] docAnnotArray = docAnnots.toArray();
      docAnnot = (DocumentAnnotation) docAnnotArray[0];
    }
   
    if (sEntity!=null) {
     
      // but I actually need to find out if this sentence is preceded by
      // a newline or if I have to find the preceding one that does.
      if (docAnnot != null)
      {
        String doctext = docAnnot.getCoveredText();
        int sentStart = sEntity.getBegin();
       
        if (sentStart > 0)
        {
          boolean argInHistSection = false;
View Full Code Here

TOP

Related Classes of org.apache.uima.jcas.tcas.DocumentAnnotation

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.