The getAssociatedLexicalModel() method searches the installed lexical models list and see if there's an associated model for a given language
HashMap<String, String> getAssociatedLexicalModel(String langId)
- The language ID
A dictionary of the associated lexical model information with keys and values defined as
HashMap<String key, String value).
null if there's no associated lexical model for a language
Use this method to search the installed lexical models list and see if there's an associated model for a given language ID.
The following script illustrates the use of
String langId = "ta"; HashMap<String, String> lexModelMap = KMManager.getAssociatedLexicalModel(langId);