This project is for converging .pdf files into images and then extracting the text on the images with OCR technologies. After that the program gives the text into a NER algorithm using spacy. The entities are then extracted into a .csv file.
This project is designed for the English Language.
-
Clone the repo
git clone https://github.com/mmentese21/nlp.git
-
Install the required libraries.
pip install -r requirements.txt
-
Install the English language suite.
python3 -m spacy download en
-
Install the tesseract-ocr.
apt-get -y install tesseract-ocr
-
Install the pdf2image package here: https://pdf2image.readthedocs.io/en/latest/installation.html
https://hub.docker.com/r/mmentese21/ocrnlp
```sh
docker run -p 8501:8501 [iD]