GithubHelp home page GithubHelp logo

proofreadtextfrompdf's Introduction

proofreadTextFromPDF

Proof reads text that is extracted from PDF files, the path is specified in the PDFpath variable. By default the proof reading is done in Swedish. This can be changed in the prompt sent to OpenAI. You can also change what "Page" is called in your language through the variable page_name.

Initially the idea was to increase the likelyhood of finding what you search for if you have a large library of PDF files, where the OCR process has been less than perfect.

Put all PDF files in a folder named PDF, or specify the path in the variable PDFpath.

The temperature is set to 0.1, as that is what is used in the OpenAI example for correcting grammar.

You need an OpenAI API key environment variable. Remember OpenAI charges for the processing. The cost can be reduced by orders of magnitude by instead using the gpt-3.5-turbo model and adapting the code accordingly. The cost would then go down to $0.002 / 1K tokens instead of $0.12 / 1K tokens.

Unfortunately the results are dissappointing using the best text completion model (text-davinci-003).

proofreadtextfrompdf's People

Contributors

shoresh613 avatar

Watchers

 avatar

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.