langchain_upstage.layout_analysis_parsers
.parse_output¶
- langchain_upstage.layout_analysis_parsers.parse_output(data: dict, output_type: Union[Literal['text', 'html'], dict]) str [source]¶
Parse the output data based on the specified output type.
- Parameters
data (dict) – The data to be parsed.
output_type (Union[OutputType, dict]) – The output type to parse the element data into.
- Returns
The parsed output.
- Return type
str
- Raises
ValueError – If the output type is invalid.