Package org.apache.uima.tutorial

Examples of org.apache.uima.tutorial.UimaAcronym


      String token = tokenizer.nextToken();
      // 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

TOP

Related Classes of org.apache.uima.tutorial.UimaAcronym

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.