mirror of
https://github.com/DS4SD/docling.git
synced 2025-12-16 16:48:21 +00:00
chore: typo fix (#1465)
* typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> * chore: typo fix Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com> --------- Signed-off-by: nkh0472 <67589323+nkh0472@users.noreply.github.com>
This commit is contained in:
@@ -234,7 +234,7 @@ class TableStructureModel(BasePageModel):
|
||||
tcells = table_cluster.cells
|
||||
tokens = []
|
||||
for c in tcells:
|
||||
# Only allow non empty stings (spaces) into the cells of a table
|
||||
# Only allow non empty strings (spaces) into the cells of a table
|
||||
if len(c.text.strip()) > 0:
|
||||
new_cell = copy.deepcopy(c)
|
||||
new_cell.rect = BoundingRectangle.from_bounding_box(
|
||||
|
||||
@@ -151,7 +151,7 @@ class TesseractOcrModel(BaseOcrModel):
|
||||
script = map_tesseract_script(script)
|
||||
lang = f"{self.script_prefix}{script}"
|
||||
|
||||
# Check if the detected languge is present in the system
|
||||
# Check if the detected language is present in the system
|
||||
if lang not in self._tesserocr_languages:
|
||||
msg = f"Tesseract detected the script '{script}' and language '{lang}'."
|
||||
msg += " However this language is not installed in your system and will be ignored."
|
||||
|
||||
Reference in New Issue
Block a user