π TitleΒΆ
templates.span_labeling.extraction.title
SpanLabelingTemplate(
input_format="{text_type}:
{text}",
instruction="From the following {text_type}, extract the objects for which the entity type expressed is one of {entity_types}.",
target_prefix="entity type:
",
postprocessors=[
"processors.to_span_label_pairs",
],
title_fields=[
"text_type",
],
)
[source]References: processors.to_span_label_pairs
Read more about catalog usage here.