Unstructured-IO / Unstructured-IO/unstructured-python-client
bug: pdf splitting modifies returned csv elements
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 119
- Fork
- 22
- Merge trung bình
- 1 ngày 21 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
Describe the bug
When specifying output_format as csv, the response from the api is different when split_pdf_page is True or False. When False, the elements contain an extra metadata field: text_as_html. This also means the element id does not match.
To Reproduce
_test_unstructured_client/integration/test_decorators.py::test_integration_split_csv_response illustrates this, but is passing because it asserts on a shortened string.
Expected behavior
The response to be identical whether or not split_pdf_page is True or False.
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với test_unstructured_client/integration/test_decorators.py::test_integration_split_csv_response và thay thế assertion rút gọn của nó bằng một phép so sánh làm lộ trường text_as_html bổ sung và id khác nhau của phần tử. Truy vết việc xử lý phản hồi CSV cho split_pdf_page=True và False; hoàn tất khi cả hai phản hồi giống hệt nhau và integration test kiểm tra toàn bộ kết quả.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 62/100