Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat/create-file-from-elements #3994

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ygicp opened this issue May 1, 2025 · 0 comments
Open

feat/create-file-from-elements #3994

ygicp opened this issue May 1, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@ygicp
Copy link

ygicp commented May 1, 2025

Is your feature request related to a problem? Please describe.
I am using the unstructured for partition a readme file. Now wherever there are images, I want to replace the images with their Alt texts. To do that I would do the following steps:

  1. Partition markdown file with unstructured.
  2. Detect image elements where they are present and convert them into a narrative text elements and the text of those narrative text elements should be the alt text of the image with some description.
  3. I would make the markdown file back from the updated list of elements.

for creating the file back from step 3 : I do not have the function to create markdown back from list of elements. While it is relatively easier, but time taking.

Describe the solution you'd like
Add a function (the responsibility of the function given below) in the existing library for as many formats as you like. The responsibility of the function would be:
Re-make the entire source file from list of elements which are extracted by unstructured only.

Describe alternatives you've considered
I considered using regex to detect the images rather than using uns. altogether but uns. is more convenient if this feature (which I described above) is available.

@ygicp ygicp added the enhancement New feature or request label May 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant