Package opennlp.uima.normalizer
Klasse NumberUtil
java.lang.Object
opennlp.uima.normalizer.NumberUtil
Provides methods to parse numbers which occur in natural language texts.
-
Konstruktorübersicht
-
Methodenübersicht
-
Konstruktordetails
-
NumberUtil
public NumberUtil()
-
-
Methodendetails
-
isLanguageSupported
Checks if the language is supported.- Parameter:
languageCode
- A ISO conform language code, e.g. "en", "pt"- Gibt zurück:
- true if the language is supported
-
parse
Parses a specifiednumber
for a certainlanguageCode
.- Parameter:
number
- The suspected number to parse.languageCode
- A ISO conform language code, e.g. "en", "pt"- Gibt zurück:
- The parsed
Number
. - Löst aus:
ParseException
- Thrown if errors occurred during parsing.IllegalArgumentException
- Thrown if thelanguageCode
is not supported.
-