πŸ“„ Having SentimentΒΆ

templates.targeted_sentiment_extraction.positive.having_sentiment

SpanLabelingTemplate(
    input_format="From the following {text_type}, extract entities having a sentiment: {sentiment_class}. If there  none, output None. 
{text_type}: {text}
",
    labels_support=[
        "positive",
    ],
    span_label_format="{span}",
    postprocessors=[
        "processors.to_span_label_pairs_surface_only",
    ],
)
[source]

References: processors.to_span_label_pairs_surface_only

Read more about catalog usage here.