Package org.apache.ctakes.core.fsm.output

Examples of org.apache.ctakes.core.fsm.output.DateToken


  private void executeFSMs(JCas jcas, List<? extends BaseToken> baseTokenList) throws AnalysisEngineProcessException {
    try {
      Set<DateToken> dateTokenSet = iv_dateFSM.execute(baseTokenList);
      Iterator<DateToken> dateTokenItr = dateTokenSet.iterator();
      while (dateTokenItr.hasNext()) {
        DateToken dt = dateTokenItr.next();
        DateAnnotation dta = new DateAnnotation(jcas, dt.getStartOffset(), dt.getEndOffset());
        dta.addToIndexes();
      }

      Set<TimeToken> timeTokenSet = iv_timeFSM.execute(baseTokenList);
      Iterator<TimeToken> timeTokenItr = timeTokenSet.iterator();
View Full Code Here


            endToken = token;
          }

          BaseToken startToken = tokens
              .get(tokenStartIndex);
          DateToken dateToken = new DateToken(startToken
              .getStartOffset(), endToken.getEndOffset());
          dateSet.add(dateToken);
          fsm.reset();
        }
      }
View Full Code Here

  private void executeFSMs(JCas jcas, List<? extends BaseToken> baseTokenList) throws AnalysisEngineProcessException {
    try {
      Set<DateToken> dateTokenSet = iv_dateFSM.execute(baseTokenList);
      Iterator<DateToken> dateTokenItr = dateTokenSet.iterator();
      while (dateTokenItr.hasNext()) {
        DateToken dt = dateTokenItr.next();
        DateAnnotation dta = new DateAnnotation(jcas, dt.getStartOffset(), dt.getEndOffset());
        dta.addToIndexes();
      }

      Set<TimeToken> timeTokenSet = iv_timeFSM.execute(baseTokenList);
      Iterator<TimeToken> timeTokenItr = timeTokenSet.iterator();
View Full Code Here

            endToken = token;
          }

          BaseToken startToken = tokens
              .get(tokenStartIndex);
          DateToken dateToken = new DateToken(startToken
              .getStartOffset(), endToken.getEndOffset());
          dateSet.add(dateToken);
          fsm.reset();
        }
      }
View Full Code Here

  private void executeFSMs(JCas jcas, List<? extends BaseToken> baseTokenList) throws AnalysisEngineProcessException {
    try {
      Set<DateToken> dateTokenSet = iv_dateFSM.execute(baseTokenList);
      Iterator<DateToken> dateTokenItr = dateTokenSet.iterator();
      while (dateTokenItr.hasNext()) {
        DateToken dt = dateTokenItr.next();
        DateAnnotation dta = new DateAnnotation(jcas, dt.getStartOffset(), dt.getEndOffset());
        dta.addToIndexes();
      }

      Set<TimeToken> timeTokenSet = iv_timeFSM.execute(baseTokenList);
      Iterator<TimeToken> timeTokenItr = timeTokenSet.iterator();
View Full Code Here

TOP

Related Classes of org.apache.ctakes.core.fsm.output.DateToken

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.