Parser components¶
Use these parser:name targets in configuration _target_ fields. Add the defining module to _imports_ to register a component explicitly. Method components and benchmark probes require these imports.
| Target | Description |
|---|---|
parser:option_letter |
The option index a reply names, or None (see the module docstring). |
parser:time_pairs |
Windows [start, end] named in a reply, in order (see the module docstring). |
parser:option_letter¶
The option index a reply names, or None (see the module docstring).
Defining module / _imports_: egolearn.evaluation.multiple_choice.
parse_choice(reply: str, options: Sequence[str])
parser:time_pairs¶
Windows [start, end] named in a reply, in order (see the module docstring).
Defining module / _imports_: egolearn.evaluation.temporal_grounding.
parse_windows(reply: str, duration: float, limit: int = max(TOP_K))