Examples of eventAt()


Examples of com.jgaap.util.EventSet.eventAt()

            word = dict.getWord(wordID.get(0));
            definition = word.getSynset().getGloss();
            break;
          case (2):
            tmpevent = port.createEventSet(words.get(i).toCharArray());
            idxWord = dict.getIndexWord(tmpevent.eventAt(0).toString(), POS.VERB);
            if (idxWord == null)
              break;
            wordID = idxWord.getWordIDs();
            word = dict.getWord(wordID.get(0));
            definition = word.getSynset().getGloss();
View Full Code Here

Examples of com.jgaap.util.EventSet.eventAt()

  public NumericEventSet createEventSet(char[] text) throws EventGenerationException {
    EventSet es = wordTokenizer.createEventSet(text);
    NumericEventSet newEs = new NumericEventSet();

    for (int i = 0; i < es.size(); i++) {
      String s = (es.eventAt(i)).toString();
      if (s.equals("JGAAP:DOCUMENTBOUNDARY") == false) {
        int l = s.length();
        newEs.addEvent(new Event(String.valueOf(l), this));
      }
    }
View Full Code Here

Examples of com.jgaap.util.EventSet.eventAt()

  public NumericEventSet createEventSet(char[] text) throws EventGenerationException {
    EventSet es = wordtokenizer.createEventSet(text);
    NumericEventSet newEs = new NumericEventSet();

    for (int i = 0; i < es.size(); i++) {
      String s = (es.eventAt(i)).toString();
      int l = 0;
      for (int j = 0; j < s.length(); j++) {
        if ((vowellist.indexOf(s.charAt(j)) != -1)
            && ((j == s.length() - 1) || (vowellist.indexOf(s.charAt(j + 1)) == -1))) {
          l++;
View Full Code Here

Examples of com.jgaap.util.EventSet.eventAt()

         expectedSet.addEvents(tmp);
        
         for(int i=0; i<sampleSet.size(); i++)
          {
            System.out.println(sampleSet.eventAt(i).toString()+" "+expectedSet.eventAt(i).toString());
            System.out.println(sampleSet.eventAt(i).toString().equals(expectedSet.eventAt(i).toString()));
          }
         System.out.println(expectedSet.size());
        
        
View Full Code Here

Examples of com.jgaap.util.EventSet.eventAt()

         expectedSet.addEvents(tmp);
        
         for(int i=0; i<sampleSet.size(); i++)
          {
            System.out.println(sampleSet.eventAt(i).toString()+" "+expectedSet.eventAt(i).toString());
            System.out.println(sampleSet.eventAt(i).toString().equals(expectedSet.eventAt(i).toString()));
          }
         System.out.println(expectedSet.size());
        
        
          assertTrue(expectedSet.equals(sampleSet));
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.