information_extraction¶
-
class
UIETask
(task, model, schema=None, **kwargs)[source]¶ Bases:
paddlenlp.taskflow.task.Task
Universal Information Extraction Task. :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
GPTask
(task, model, **kwargs)[source]¶ Bases:
paddlenlp.taskflow.task.Task
Global Pointer for closed-domain information extraction Task. :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