π DetailedΒΆ
templates.span_labeling.extraction.detailed
SpanLabelingTemplate
(
instruction="From the given {text_type}, extract all the entities of the following entity types: {entity_types}.
Return the output in this exact format:
The output should be a comma separated list of pairs of entity and corresponding entity_type.
Use a colon to separate between the entity and entity_type. ",
input_format="{text_type}:
{text}",
postprocessors=[
"processors.to_span_label_pairs",
],
)
[source]References: processors.to_span_label_pairs
Read more about catalog usage here.