sentiment_analysis

class SentaTask(task, model, **kwargs)[源代码]

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

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