information_extraction#

get_dynamic_max_length(examples, default_max_length: int, dynamic_max_length: List[int]) int[源代码]#

get max_length by examples which you can change it by examples in batch

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

基类: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)[源代码]#

基类: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