πŸ“„ To Span Label PairsΒΆ

processors.to_span_label_pairs

PostProcess(
    operator=RegexParser(
        regex="\s*((?:[^,:\\]|\\.)+?)\s*:\s*((?:[^,:\\]|\\.)+?)\s*(?=,|$)",
    ),
)
[source]

from unitxt.processors import RegexParser

Explanation about RegexParserΒΆ

A processor that uses regex in order to parse a string.

Read more about catalog usage here.