Examples of addToIndexes()


Examples of org.apache.ctakes.padtermspotter.type.SubSection.addToIndexes()

          }

        }
        if (foundEnd)
          subsectionAnnotation.addToIndexes();

      }

    }
    Iterator<?> segmentItrAgain = indexes.getAnnotationIndex(Segment.type)
View Full Code Here

Examples of org.apache.ctakes.sideeffect.type.PSESentence.addToIndexes()

      if (foundPSE && foundDrug) {
        PSESentence ps = new PSESentence(jcas);
        ps.setBegin(sen.getBegin());
        ps.setEnd(sen.getEnd());
        ps.addToIndexes();
      } else if (foundPSE && !foundDrug) {
        int num = sen.getSentenceNumber();
        num = (num > 0) ? num - 1 : num;
        int[] previousSenSpan = SEUtil
            .getSentenceSpanOfGivenSentenceNum(jcas, num);
View Full Code Here

Examples of org.apache.ctakes.sideeffect.type.PSESentenceFeature.addToIndexes()

        psf.setFeatures(feaArray); // TODO ?? - could be no text in
                      // sentence??
      psf.setPseSen(ps);

      // add to CAS
      psf.addToIndexes();
    }
  }

  /**
   * Return the List of location features of meta keywords metaKeywords -
View Full Code Here

Examples of org.apache.ctakes.sideeffect.type.SESentence.addToIndexes()

        int begin = Integer.parseInt(stk[0]);
        int end = Integer.parseInt(stk[1]);
      SESentence ses = new SESentence(jcas);
      ses.setBegin(begin);
      ses.setEnd(end);
      ses.addToIndexes();
      }
  }
     
}
View Full Code Here

Examples of org.apache.ctakes.sideeffect.type.SideEffectAnnotation.addToIndexes()

      SESentence ses = new SESentence(jcas);
      ses.setBegin(se.pse.senBegin);
      ses.setEnd(se.pse.senEnd);
      sea.setSentence(ses);
     
      sea.addToIndexes();
    }
  }
   
  /**
   * set keyDrugMap and sideEffectMap
View Full Code Here

Examples of org.apache.ctakes.smokingstatus.i2b2.type.RecordSentence.addToIndexes()

        // assign classification value if applicable
        // this only happens when a Truth data file was specified
        if (entry.iv_classification != null) {
          rs.setClassification(entry.iv_classification);
        }
        rs.addToIndexes();

        taeStep1.process(jcas_local);

        if (isSmokingStatusKnown(jcas_local))
          taeStep2.process(jcas_local);
View Full Code Here

Examples of org.apache.ctakes.smokingstatus.type.NonSmokerNamedEntityAnnotation.addToIndexes()

      NonSmokerNamedEntityAnnotation neAnnot = new NonSmokerNamedEntityAnnotation(jcas); //modification
      neAnnot.setBegin(neBegin);
      neAnnot.setEnd(neEnd);
      neAnnot.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_DICT_LOOKUP);
      neAnnot.setOntologyConceptArr(ocArr);
      neAnnot.addToIndexes();
    }
  }
}
View Full Code Here

Examples of org.apache.ctakes.smokingstatus.type.SmokerNamedEntityAnnotation.addToIndexes()

      SmokerNamedEntityAnnotation neAnnot = new SmokerNamedEntityAnnotation(jcas); //modification
      neAnnot.setBegin(neBegin);
      neAnnot.setEnd(neEnd);
      neAnnot.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_DICT_LOOKUP);
      neAnnot.setOntologyConceptArr(ocArr);
      neAnnot.addToIndexes();
    }
  }
}
View Full Code Here

Examples of org.apache.ctakes.smokingstatus.type.SmokingDocumentClassification.addToIndexes()

       */
      String finalClassification = resolveClassification();

      SmokingDocumentClassification docClass = new SmokingDocumentClassification(
          jcas);
      docClass.addToIndexes();
      docClass.setClassification(finalClassification);

      resetCounts();
    } catch (Exception e) {
      throw new ResourceProcessException(e);
View Full Code Here

Examples of org.apache.ctakes.smokingstatus.type.UnknownSmokerNamedEntityAnnotation.addToIndexes()

      UnknownSmokerNamedEntityAnnotation neAnnot = new UnknownSmokerNamedEntityAnnotation(jcas); //modification
      neAnnot.setBegin(neBegin);
      neAnnot.setEnd(neEnd);
      neAnnot.setDiscoveryTechnique(CONST.NE_DISCOVERY_TECH_DICT_LOOKUP);
      neAnnot.setOntologyConceptArr(ocArr);
      neAnnot.addToIndexes();
    }
  }
}
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.