opennlp.tools.tokenize.lang
Class Factory
java.lang.Object
opennlp.tools.tokenize.lang.Factory
public class Factory
- extends Object
DEFAULT_ALPHANUMERIC
public static final String DEFAULT_ALPHANUMERIC
- See Also:
- Constant Field Values
Factory
public Factory()
getAlphanumeric
public Pattern getAlphanumeric(String languageCode)
- Gets the alpha numeric pattern for the language. Please save the value
locally because this call is expensive.
- Parameters:
languageCode
- the language code. If null or unknow the default pattern will be
returned.
- Returns:
- the alpha numeric pattern for the language or the default pattern.
createTokenContextGenerator
public TokenContextGenerator createTokenContextGenerator(String languageCode,
Set<String> abbreviations)
Copyright © 2013 The Apache Software Foundation. All Rights Reserved.