Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thinh-vu/nlp_toolbox
nlp_toolbox provides a collection of tools for natural language processing tasks include using ChatGPT API to process prompts.
https://github.com/thinh-vu/nlp_toolbox
Last synced: about 2 months ago
JSON representation
nlp_toolbox provides a collection of tools for natural language processing tasks include using ChatGPT API to process prompts.
- Host: GitHub
- URL: https://github.com/thinh-vu/nlp_toolbox
- Owner: thinh-vu
- License: mit
- Created: 2023-03-25T15:45:26.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-22T15:32:08.000Z (over 1 year ago)
- Last Synced: 2024-10-15T00:02:52.542Z (2 months ago)
- Language: Jupyter Notebook
- Homepage:
- Size: 2.43 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nlp_toolbox
nlp_toolbox is an open-source GitHub repository that provides a collection of tools for natural language processing tasks. The repository provides functions for loading text from multiple sources such as the web and ebooks. Additionally, it includes functions for summarizing text, OCR, interacting with the OpenAI GPT API, and generating word clouds.
# II. REFERENCES
## 2.1. How to use this package?
- Install the stable version: `pip install nlp_toolbox`
- You can install the latest `nlp_toolbox` version from source with the following command:
`pip install git+https://github.com/thinh-vu/nlp_toolbox.git@main`_(*) You might need to insert a `!` before your command when running terminal commands on Google Colab._
- To start using functions, you need to import them: `from nlp_toolbox import *`
# III. DEPENDENCIES
## ChatGPT API
ChatGPT API simplifies NLP tasks by allowing you to send a request in a prompt format and receive a response without the need for dependent packages.To send a request to ChatGPT API endpoint, you will need an OpenAI API key that can be obtained from [OpenAI](https://platform.openai.com/account/api-keys).
## spacy
Download pre-trained files using terminal.
```
python -m spacy download en_core_web_lg
python -m spacy download en_core_web_sm
```## pytesseract
Quick installation guide
**On Linux**
```
sudo apt-get update
sudo apt-get install libleptonica-dev tesseract-ocr tesseract-ocr-dev libtesseract-dev python3-pil tesseract-ocr-eng tesseract-ocr-script-latn
```
**On Mac**
`brew install tesseract`**On Windows**
- Download binary from https://github.com/UB-Mannheim/tesseract/wiki.
- Add `pytesseract.pytesseract.tesseract_cmd = 'C:\Program Files (x86)\Tesseract-OCR\tesseract.exe'` to your script.
- Install python package using pip:
```
pip install tesseract
pip install tesseract-ocr
```Reference: [Installation guide](https://tesseract-ocr.github.io/tessdoc/Installation.html)
- For Windows: Specific the location of the pytesseract by adding this code to your python project `pytesseract.pytesseract.tesseract_cmd = r'C:\Users\mrthi\AppData\Local\Tesseract-OCR\tesseract.exe'`
- Add pre-trained languages data:
- Visit github and download the data file: [tessdata](https://github.com/tesseract-ocr/tessdata), eg: `vie.traineddata` for Vietnamese
- Copy the downloaded file to the `tessdata` folder, Eg `C:\Users\YOUR-USER-NAME\AppData\Local\Tesseract-OCR\tessdata`# IV. 🙋♂️ CONTACT INFORMATION
You can contact me at one of my social network profiles:---
If you find value in my open-source projects and would like to support their development, you can donate via [Paypal](https://paypal.me/thinhvuphoto?country.x=VN&locale.x=en_US) or Momo e-wallet (VN). Your contribution will help me maintain my blog hosting fee and continue to create high-quality content. Thank you for your support!
![momo-qr](https://github.com/thinh-vu/vnstock/blob/main/src/momo-qr-thinhvu.jpeg?raw=true)