GerevAI/gerev

Support PDF in GDrive

yuvalsteuer opened this issue · 8 comments

See similar parsers here:

I will be happy to take this one

Great! When are you expecting to finish this?

I am trying to set up the dev environment right now but getting some issues in the following environment:

  • OS: WSL(Windows 10)
  • Nvidia: No

the function

STORAGE_PATH = Path('/opt/storage/') if IS_IN_DOCKER else Path(f'/home/{os.getlogin()}/.gerev/storage/')

The following line is giving me the below error:

FileNotFoundError: [Errno 2] No such file or directory

Upon researching I found out that os.getlogin() is the culprit.

If you cannot provide any help with this issue, can you describe a proper environment setup that will be suitable for development?

Just hardcode any path that is valid in WSL.

Currently, it is possible to parse the entire content of pdf files as text, but as it's apparent from your parsers, the program needs to compile it in the following form:

Some title: related text
Some other title: related text

Am I right?

There is already a pull request that parses the entire pdf document as text.

If you have any enhancements or suggestions for that, I'll be more than willing to implement them.

Meanwhile, I am also researching how can I parse pdf while keeping the hierarchical information intact.

Roey7 commented

Hey!
Just like I commented on that other PR, it should be pdf->html
then we parse html>text

Roey7 commented

@rishi003 let's chat on discord! I could guide you a little bit :)

Sure, shall we discuss it on the discuss thread?