πŸ“„ Having SentimentΒΆ

templates.targeted_sentiment_extraction.having_sentiment

SpanLabelingTemplate(
    input_format="From the following {text_type}, extract entities having a sentiment: positive, negative, neutral.
{text_type}: {text}
",
    postprocessors=[
        "processors.to_span_label_pairs",
    ],
)
[source]

References: processors.to_span_label_pairs

Read more about catalog usage here.