πŸ“„ having_sentimentΒΆ

Note

ID: templates.targeted_sentiment_extraction.positive.having_sentiment | Type: SpanLabelingTemplate

{
    "input_format": "From the following {text_type}, extract entities having a sentiment: {sentiment_class}. If there  none, output None. \n{text_type}: {text}\n",
    "labels_support": [
        "positive"
    ],
    "postprocessors": [
        "processors.to_span_label_pairs_surface_only"
    ],
    "span_label_format": "{span}",
    "type": "span_labeling_template"
}

References: processors.to_span_label_pairs_surface_only

Read more about catalog usage here.