lexical_analysis#

load_vocab(dict_path)[源代码]#

Load vocab from file

class LacTask(task, model, user_dict=None, **kwargs)[源代码]#

基类:Task

Lexical analysis of Chinese task to segement the chinese sentence. :param task: The name of task. :type task: string :param model: The model name in the task. :type model: string :param user_dict: The user-defined dictionary, default to None. :type user_dict: string :param kwargs: Additional keyword arguments passed along to the specific task. :type kwargs: dict, optional