named_entity_recognition#

class NERWordTagTask(model, task, entity_only=False, **kwargs)[source]#

Bases: WordTagTask

This the NER(Named Entity Recognition) task that convert the raw text to entities. And the task with the wordtag model will link the more meesage with the entity. :param task: The name of task. :type task: string :param model: The model name in the task. :type model: string :param kwargs: Additional keyword arguments passed along to the specific task. :type kwargs: dict, optional

class NERLACTask(model, task, entity_only=False, **kwargs)[source]#

Bases: LacTask

Part-of-speech tagging task for the raw text. :param task: The name of task. :type task: string :param model: The model name in the task. :type model: string :param kwargs: Additional keyword arguments passed along to the specific task. :type kwargs: dict, optional