sentiment_analysis¶
-
class
SentaTask
(task, model, **kwargs)[source]¶ Bases:
paddlenlp.taskflow.task.Task
Sentiment analysis task using RNN or BOW model to predict sentiment opinion on Chinese 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
-
class
SkepTask
(task, model, **kwargs)[source]¶ Bases:
paddlenlp.taskflow.task.Task
Sentiment analysis task using ERNIE-Gram model to predict sentiment opinion on Chinese 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
-
class
UIESentaTask
(task, model, schema, aspects=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 aspects: a list of pre-given aspects :type aspects: list[string] :param kwargs: Additional keyword arguments passed along to the specific task. :type kwargs: dict, optional