Examples of addToIndexes()


Examples of org.apache.uima.ruta.type.RutaColoring.addToIndexes()

      RutaBlock parent = element.getParent();
      coloring.setBgColor(bgcolor.getStringValue(parent, match, element, stream));
      coloring.setFgColor(fgcolor.getStringValue(parent, match, element, stream));
      coloring.setSelected(selected.getBooleanValue(parent, match, element, stream));
      coloring.setTargetType(type.getType(parent).getName());
      coloring.addToIndexes();
    }
  }

  public IStringExpression getFgColor() {
    return fgcolor;
View Full Code Here

Examples of org.apache.uima.testTypeSystem_arrays.OfShorts.addToIndexes()

    ShortArray a = new ShortArray(jcas, 3);
    a.set(0, (short)0);
    a.set(1, (short)1);
    a.set(2, (short)2);
    f.setF1Shorts(a);
    f.addToIndexes();
   
    OfStrings ss = new OfStrings(jcas);
    StringArray sa = new StringArray(jcas, 3);
    sa.set(0, "0s");
    sa.set(1, "1s");
View Full Code Here

Examples of org.apache.uima.testTypeSystem_arrays.OfStrings.addToIndexes()

    StringArray sa = new StringArray(jcas, 3);
    sa.set(0, "0s");
    sa.set(1, "1s");
    sa.set(2, "2s");
    ss.setF1Strings(sa);
    ss.addToIndexes();
   
    CasToInlineXml c2x = new CasToInlineXml();
    String result = c2x.generateXML(srcCas);
    System.out.println(result);
  }
View Full Code Here

Examples of org.apache.uima.tutorial.DateTimeAnnot.addToIndexes()

      Date dtSpec = dateFormat.parse(matched, pp);
      // System.out.println(dtAnnot.dtSpec);
      if (dtSpec != null) {
        dtAnnot.setShortDateString(dfDateShort.format(dtSpec));
      }
      dtAnnot.addToIndexes();
    }
  }

  String fixUpDateTimeStrings(String s) {
    String av; // append value
View Full Code Here

Examples of org.apache.uima.tutorial.Meeting.addToIndexes()

              if (maxEnd - minBegin < mWindowSize) {
                // span must not overlap the last annotation we made
                if (minBegin > lastMeetingEnd) {
                  // annotate
                  Meeting mtg = new Meeting(aJCas, minBegin, maxEnd, room, date, time1, time2);
                  mtg.addToIndexes();
                  lastMeetingEnd = maxEnd;
                }
              }
            }
          }
View Full Code Here

Examples of org.apache.uima.tutorial.RoomNumber.addToIndexes()

      while (matcher.find()) {
        // found one - create annotation
        RoomNumber annotation = new RoomNumber(aJCas);
        annotation.setBegin(matcher.start());
        annotation.setEnd(matcher.end());
        annotation.addToIndexes();
        annotation.setBuilding(mLocations[i]);
        getContext().getLogger().log(Level.FINEST, "Found: " + annotation);
      }
    }
  }
View Full Code Here

Examples of org.apache.uima.tutorial.UimaAcronym.addToIndexes()

      // look up token in map to see if it is an acronym
      String expandedForm = mMap.get(token);
      if (expandedForm != null) {
        // create annotation
        UimaAcronym annot = new UimaAcronym(aJCas, pos, pos + token.length(), expandedForm);
        annot.addToIndexes();
      }
      // incrememnt pos and go to next token
      pos += token.length();
    }
  }
View Full Code Here

Examples of org.apache.uima.tutorial.UimaMeeting.addToIndexes()

    }

    Iterator uimaMeetingIter = uimaMeetings.iterator();
    while (uimaMeetingIter.hasNext()) {
      UimaMeeting annot = (UimaMeeting) uimaMeetingIter.next();
      annot.addToIndexes();
    }
  }

}
View Full Code Here

Examples of org.cleartk.timeml.type.DocumentCreationTime.addToIndexes()

  public void process(JCas jCas)
      throws AnalysisEngineProcessException {
    // create a cleartk dct object
    DocumentCreationTime dct = new DocumentCreationTime(jCas);

    dct.addToIndexes();
  }

  public static AnalysisEngineDescription getAnnotatorDescription() throws ResourceInitializationException {
    return AnalysisEngineFactory.createPrimitiveDescription(ClearTKDocumentCreationTimeAnnotator.class);
  }
View Full Code Here

Examples of org.cleartk.timeml.type.Event.addToIndexes()

        // create a cleartk event object
        Event event = new Event(jCas);
        event.setBegin(eMention.getBegin());
        event.setEnd(eMention.getEnd());

        event.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.