relevanceai.operations.text.sentiment.sentiment_workflow#

Module Contents#

class relevanceai.operations.text.sentiment.sentiment_workflow.SentimentWorkflow(model_name, workflow_alias: str = 'sentiment', **workflow_kwargs)#

Sentiment workflow

fit_dataset(self, dataset, input_field: str, output_field: str = '_sentiment_', log_to_file: bool = True, chunksize: int = 20, workflow_alias: str = 'sentiment', notes=None, refresh: bool = False, highlight: bool = False, positive_sentiment_name: str = 'positive', max_number_of_shap_documents: Optional[int] = None, min_abs_score: float = 0.1)#

Fit on dataset