GithubHelp home page GithubHelp logo

Support PDF in GDrive about gerev HOT 8 OPEN

gerevai avatar gerevai commented on July 23, 2024
Support PDF in GDrive

from gerev.

Comments (8)

yuvalsteuer avatar yuvalsteuer commented on July 23, 2024 1

Just hardcode any path that is valid in WSL.

from gerev.

rishi003 avatar rishi003 commented on July 23, 2024

I will be happy to take this one

from gerev.

yuvalsteuer avatar yuvalsteuer commented on July 23, 2024

Great! When are you expecting to finish this?

from gerev.

rishi003 avatar rishi003 commented on July 23, 2024

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?

from gerev.

rishi003 avatar rishi003 commented on July 23, 2024

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.

from gerev.

Roey7 avatar Roey7 commented on July 23, 2024

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

from gerev.

Roey7 avatar Roey7 commented on July 23, 2024

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

from gerev.

rishi003 avatar rishi003 commented on July 23, 2024

Sure, shall we discuss it on the discuss thread?

from gerev.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.