Package org.snu.ids.ha.ma

Examples of org.snu.ids.ha.ma.Token


   */
  public static String getFormatedUOMValues(String inputString)
  {
    String resultString = "";
    List<Token> list = Tokenizer.tokenize(inputString);
    Token token = null;

    for( int i = 0; i < list.size(); i++ ) {
      token = list.get(i);
      if( token.isCharSetOf(CharSetType.NUMBER) ) {
        resultString += token.getString();
      } else if( isUOMConnector(token.getString()) ) {
        resultString += STD_UOM_CONNECTOR;
      } else if( !(token.getString().equals(" ") || token.getString().equals("\t")) ) {
        resultString += token.getString();
      }
    }

    return resultString;
  }
View Full Code Here

TOP

Related Classes of org.snu.ids.ha.ma.Token

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.