Workflow

works

class mindnlp.workflow.SentimentAnalysisWork(work, model, **kwargs)[source]

Sentiment Analysis Work.

work

The meta classs of work in Workflow.

class mindnlp.workflow.work.Work(model, work, **kwargs)[source]

Bases: object

The meta classs of work in Workflow. The meta class has the five abstract function,

the subclass need to inherit from the meta class.

Parameters:
  • work (string) – The name of work.

  • model (string) – The model name in the work.

  • kwargs (dict, optional) – Additional keyword arguments passed along to the specific work.

help()[source]

Return the usage message of the current work.

downstream

class mindnlp.workflow.BertForSentimentAnalysis(config)[source]

Bert Model for classification tasks