opennlp.uima.normalizer
Class NumberUtil

java.lang.Object
  extended by opennlp.uima.normalizer.NumberUtil

public final class NumberUtil
extends Object

This class contains methods to parse numbers which occur in natural language texts.


Constructor Summary
NumberUtil()
           
 
Method Summary
static boolean isLanguageSupported(String languageCode)
          Checks if the language is supported.
static Number parse(String number, String languageCode)
          Gives its best to parse the provided number.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberUtil

public NumberUtil()
Method Detail

isLanguageSupported

public static boolean isLanguageSupported(String languageCode)
Checks if the language is supported.

Parameters:
languageCode -
Returns:

parse

public static Number parse(String number,
                           String languageCode)
                    throws ParseException
Gives its best to parse the provided number.

Parameters:
number -
languageCode -
Returns:
Throws:
ParseException


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.