mirror of
https://github.com/DS4SD/docling.git
synced 2025-08-01 15:02:21 +00:00
refactor EXCEL to XLSX
Signed-off-by: Peter Staar <taa@zurich.ibm.com>
This commit is contained in:
parent
bc31f2a973
commit
c9c4810c25
@ -67,7 +67,7 @@ class MsExcelDocumentBackend(DeclarativeDocumentBackend):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def supported_formats(cls) -> Set[InputFormat]:
|
def supported_formats(cls) -> Set[InputFormat]:
|
||||||
return {InputFormat.EXCEL}
|
return {InputFormat.XLSX}
|
||||||
|
|
||||||
def convert(self) -> DoclingDocument:
|
def convert(self) -> DoclingDocument:
|
||||||
# Parses the DOCX into a structured document model.
|
# Parses the DOCX into a structured document model.
|
||||||
|
@ -86,7 +86,7 @@ class ImageFormatOption(FormatOption):
|
|||||||
|
|
||||||
|
|
||||||
_format_to_default_options = {
|
_format_to_default_options = {
|
||||||
InputFormat.EXCEL: FormatOption(
|
InputFormat.XLSX: FormatOption(
|
||||||
pipeline_cls=SimplePipeline, backend=MsExcelDocumentBackend
|
pipeline_cls=SimplePipeline, backend=MsExcelDocumentBackend
|
||||||
),
|
),
|
||||||
InputFormat.DOCX: FormatOption(
|
InputFormat.DOCX: FormatOption(
|
||||||
|
Loading…
Reference in New Issue
Block a user