π To Span Label Pairs Surface OnlyΒΆ
Note
ID: processors.to_span_label_pairs_surface_only | Type: SequentialOperator
{
"__type__": "sequential_operator",
"steps": [
{
"__type__": "regex_parser",
"field": "prediction",
"process_every_value": false,
"regex": "\\s*((?:\\\\.|[^,])+?)\\s*(?:,|$)()",
"termination_regex": "^\\s*None\\s*$"
},
{
"__type__": "regex_parser",
"field": "references",
"process_every_value": true,
"regex": "\\s*((?:\\\\.|[^,])+?)\\s*(?:,|$)()",
"termination_regex": "^\\s*None\\s*$"
}
]
}
Explanation about SequentialOperatorΒΆ
A class representing a sequential operator in the streaming system.
A sequential operator is a type of MultiStreamOperator that applies a sequence of other operators to a MultiStream. It maintains a list of StreamingOperator`s and applies them in order to the `MultiStream.
Explanation about RegexParserΒΆ
A processor that uses regex in order to parse a string.
Read more about catalog usage here.