Skip to content

Commit 1c88abb

Browse files
authored
fix: standardize parameter name for document processing in MSDocsExtractor and XMLExtractor (#15)
1 parent 1c59b64 commit 1c88abb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

extractor-api-lib/src/extractor_api_lib/impl/extractors/file_extractors/ms_docs_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async def aextract_content(self, file_path: Path, name: str) -> list[InternalInf
9292
infer_table_structure=True,
9393
)
9494

95-
return self._process_elements(elements, file_path.name)
95+
return self._process_elements(elements, name)
9696

9797
def _process_elements(self, elements: list[Element], document_name: str) -> list[InternalInformationPiece]:
9898
processed_elements: list[InternalInformationPiece] = []

extractor-api-lib/src/extractor_api_lib/impl/extractors/file_extractors/xml_extractor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ async def aextract_content(self, file_path: Path, name: str) -> list[InternalInf
6161
A list of processed information pieces extracted from the XML file.
6262
"""
6363
elements = partition_xml(filename=file_path.as_posix(), xml_keep_tags=False)
64-
return self._process_elements(elements, file_path.name)
64+
return self._process_elements(elements, name)
6565

6666
def _process_elements(self, elements: list[Element], document_name: str) -> list[InternalInformationPiece]:
6767
processed_elements: list[InternalInformationPiece] = []

0 commit comments

Comments
 (0)