Examples of addToIndexes()


Examples of edu.mayo.bmi.uima.core.type.syntax.WordToken.addToIndexes()

            tok.setBegin(tPos.getBegin());
            tok.setEnd(tPos.getEnd() + 1);
          }
          tok.setTokenNumber(tokNum);
          tokNum++; 
          tok.addToIndexes();
        }
      }
      for (Annotation a : assertions) {
        Concept assertion = new Concept(jcas);
        LineAndTokenPosition assertionStart = new LineAndTokenPosition();
View Full Code Here

Examples of edu.mayo.bmi.uima.core.type.textspan.Sentence.addToIndexes()

          sent.setBegin(sStart.getBegin()); // get begin of first token
          sent.setEnd(sEnd.getEnd() + 1); // get end of last token
          sent.setSentenceNumber(sentNum);
        }
        sentNum++;
        sent.addToIndexes();
        for (int j=0; j < tokenArrays[i].length; j++) {
          WordToken tok = new WordToken(jcas);
          LineAndTokenPosition word = new LineAndTokenPosition();
          word.setLine(i+1);
          word.setTokenOffset(j);
View Full Code Here

Examples of letweb.semanticum.tsd.Audio.addToIndexes()

    } catch (ExecutionException e) {
      getContext().getLogger().log(Level.WARNING, "IOError/InterruptedError: " + e.getMessage());
    }
   
    // Aggiornamento degli indici
    audio.addToIndexes();
  }

  @Override
  public void destroy() {
    super.destroy();
View Full Code Here

Examples of letweb.semanticum.tsd.LinkType.addToIndexes()

      StringArray keywordsStringArray = new StringArray(jcas,temp.length);
      lt.setKeywords(keywordsStringArray);
      for(i = 0; i<temp.length; i++)
        lt.setKeywords(i,temp[i]);
      lt.setId(connDb.getId().get(idx++));
      lt.addToIndexes();
     
  }

  @Override
  public boolean hasNext() throws CollectionException {
View Full Code Here

Examples of letweb.semanticum.tsd.STText.addToIndexes()

            STText stt = new STText(aJCas);
            stt.setBegin(itbb.next());
            stt.setEnd(itee.next());
            stt.setStartTime(itb.next());
            stt.setEndTime(ite.next());
            stt.addToIndexes();
          }
         
          recognizer.deallocate();
    } catch (CloneNotSupportedException e) {
      getContext().getLogger().log(Level.WARNING, "Configuration Manager CloneError: " + e.getMessage());
View Full Code Here

Examples of org.apache.clerezza.uima.utils.ts.WikipediaEntity.addToIndexes()

    WikipediaEntity wikipediaEntity = new WikipediaEntity(jcas);
    wikipediaEntity.setUri("http://en.wikipedia.org/wiki/STS-135");
    wikipediaEntity.setLabel("STS-135");
    FSList stsAnnotationsList = findSTSAnnotations(jcas);
    wikipediaEntity.setReferences(stsAnnotationsList);
    wikipediaEntity.addToIndexes();

  }

  private FSList findSTSAnnotations(JCas jcas) {
    NonEmptyFSList annotations = new NonEmptyFSList(jcas);
View Full Code Here

Examples of org.apache.clerezza.uima.utils.ts.WikipediaEntityAnnotation.addToIndexes()

    NonEmptyFSList annotations = new NonEmptyFSList(jcas);
    WikipediaEntityAnnotation annotation = new WikipediaEntityAnnotation(jcas);
    annotation.setBegin(0);
    annotation.setEnd(1);
    annotation.setUri("http://somesite.org/#STS135cit1");
    annotation.addToIndexes();
    annotations.setHead(annotation);
    return annotations;
  }

}
View Full Code Here

Examples of org.apache.ctakes.assertion.medfacts.types.Concept.addToIndexes()

      // annotation if the conceptType was not null)
      if (conceptType != null)
      {
        concept.setConceptType(conceptType.toString());
      }
      concept.addToIndexes();

      //logger.info("finished adding new Concept annotation. " + concept);

    }
    //logger.info("    after iterating over named entities.");
View Full Code Here

Examples of org.apache.ctakes.assertion.zoner.types.Heading.addToIndexes()

      HeadingRange r = i.next();
        Heading hAnnot = new Heading(jcas)
        hAnnot.setBegin(r.getHeadingBegin());
        hAnnot.setEnd(r.getHeadingEnd());
        hAnnot.setLabel(r.getLabel());
        hAnnot.addToIndexes();
        logger.info(String.format("added new headingrange annotation [%d-%d] \"%s\"", hAnnot.getBegin(), hAnnot.getEnd(), hAnnot.getCoveredText()));
    }

  }
View Full Code Here

Examples of org.apache.ctakes.assertion.zoner.types.Zone.addToIndexes()

      Range r = i.next();
        Zone zAnnot = new Zone(jcas)
        zAnnot.setBegin(r.getBegin());
        zAnnot.setEnd(r.getEnd());
        zAnnot.setLabel(r.getLabel());
        zAnnot.addToIndexes();
        logger.info(String.format("added new zone annotation [%d-%d] \"%s\"", zAnnot.getBegin(), zAnnot.getEnd(), zAnnot.getCoveredText()));
    }
   
//    List<Range> subsectionRangeList = zonerCli.getSubsections();
//    for (Iterator<Range> i = subsectionRangeList.iterator(); i.hasNext();  ) {
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.