Class: DictionaryLoader

DictionaryLoader


new DictionaryLoader(dic_path)

DictionaryLoader base constructor

Parameters:
Name Type Description
dic_path string

Dictionary path

Methods


load(load_callback)

Load dictionary files

Parameters:
Name Type Description
load_callback DictionaryLoader~onLoad

Callback function called after loaded

Type Definitions


onLoad(err, dic)

Callback

Parameters:
Name Type Description
err Object

Error object

dic DynamicDictionaries

Loaded dictionary