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

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


      }

      Set<PersonTitleToken> personTitleTokenSet = iv_personTitleFSM.execute(baseTokenList);
      Iterator<PersonTitleToken> personTitleTokenItr = personTitleTokenSet.iterator();
      while (personTitleTokenItr.hasNext()) {
        PersonTitleToken ptt = personTitleTokenItr.next();
        PersonTitleAnnotation pta = new PersonTitleAnnotation(jcas, ptt.getStartOffset(), ptt.getEndOffset());
        pta.addToIndexes();
      }
    } catch (Exception e) {
      throw new AnalysisEngineProcessException(e);
    }
View Full Code Here


      }

      Set<PersonTitleToken> personTitleTokenSet = iv_personTitleFSM.execute(baseTokenList);
      Iterator<PersonTitleToken> personTitleTokenItr = personTitleTokenSet.iterator();
      while (personTitleTokenItr.hasNext()) {
        PersonTitleToken ptt = personTitleTokenItr.next();
        PersonTitleAnnotation pta = new PersonTitleAnnotation(jcas, ptt.getStartOffset(), ptt.getEndOffset());
        pta.addToIndexes();
      }
    } catch (Exception e) {
      throw new AnalysisEngineProcessException(e);
    }
View Full Code Here

            // skip ahead over single token we don't want
            tokenStartIndex++;
          }
          BaseToken startToken = tokens.get(tokenStartIndex);
          BaseToken endToken = token;
          PersonTitleToken ptToken = new PersonTitleToken(startToken
              .getStartOffset(), endToken.getEndOffset());
          personTitleSet.add(ptToken);
          fsm.reset();
        }
      }
View Full Code Here

      }

      Set<PersonTitleToken> personTitleTokenSet = iv_personTitleFSM.execute(baseTokenList);
      Iterator<PersonTitleToken> personTitleTokenItr = personTitleTokenSet.iterator();
      while (personTitleTokenItr.hasNext()) {
        PersonTitleToken ptt = personTitleTokenItr.next();
        PersonTitleAnnotation pta = new PersonTitleAnnotation(jcas, ptt.getStartOffset(), ptt.getEndOffset());
        pta.addToIndexes();
      }
    } catch (Exception e) {
      throw new AnalysisEngineProcessException(e);
    }
View Full Code Here

TOP

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

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.