unstructured
1b7c99d8 - chore: refactor languages parameter for auto partition (#1400)

Commit
2 years ago
chore: refactor languages parameter for auto partition (#1400) ### Summary In order to support language functionality other than Tesseract OCR, we want to represent languages provided for either partitioning accuracy or OCR as a standard list of langcodes as strings. ### Details Follows the pattern established with PDFs in #1334. Adds languages (a list of strings) as a parameter to partition in auto.py. Marks ocr_languages for deprecation. ### Test Call partition with a variety of filetypes (especially pdfs/images), strategies, languages, or ocr_languages. - inclusion of ocr_languages as a parameter should display a deprecation warning and may proceed with partitioning if no other conflicts - the other valid call outputs should be no different from the current outputs
Author
Parents
Loading