sentiment_analysis#

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

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

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

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

set_schema(schema)[源代码]#

Set schema for UIE Model.