rephrasal_parser
obtain_parser_functions
obtain_parser_functions(
parser: str | list[str], parser_functions_dict: dict[str, Callable]
) -> list[Callable]
Check if the parser(s) provided are in the parser_functions_dict.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
parser
|
str | list[str]
|
A single parser or a list of parsers to check if they are keys in the parser_functions_dict dictionary |
required |
parser_functions_dict
|
dict[str, Callable]
|
A dictionary of parser functions with the keys as the parser names and the values as the parser functions |
required |
Returns:
| Type | Description |
|---|---|
list[Callable]
|
List of parser functions that correspond to the parsers |