π To Span Label Pairs Surface OnlyΒΆ
processors.to_span_label_pairs_surface_only
PostProcess
(
operator=RegexParser
(
regex="\s*((?:\\.|[^,])+?)\s*(?:,|$)()",
termination_regex="^\s*None\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.