Download Paper2Poster/docling/utils/ocr_utils.py from JaceWei/PaperShow: direct link, hf CLI and curl.
- Browser
- Download file 263 Bytes
-
https://huggingface.co/spaces/JaceWei/PaperShow/resolve/main/Paper2Poster/docling/utils/ocr_utils.py
- Command line
-
hf download hf://spaces/JaceWei/PaperShow/Paper2Poster/docling/utils/ocr_utils.py
-
curl -L -o ocr_utils.py https://huggingface.co/spaces/JaceWei/PaperShow/resolve/main/Paper2Poster/docling/utils/ocr_utils.py
263 Bytes
| def map_tesseract_script(script: str) -> str: | |
| r""" """ | |
| if script == "Katakana" or script == "Hiragana": | |
| script = "Japanese" | |
| elif script == "Han": | |
| script = "HanS" | |
| elif script == "Korean": | |
| script = "Hangul" | |
| return script | |