This is a simple text summarizer using a sentencer, depenency parser and reconstructor.
- Python 3.5
- Docker
- MariaDB
- Install MariaDB - https://downloads.mariadb.org/
- Install MySQL Connector - https://dev.mysql.com/downloads/connector/python/
- Install Python 3.5+
- Install Docker - https://docs.docker.com/docker-for-windows/install/
- Download Stanford CoreNLP - http://nlp.stanford.edu/software/stanford-corenlp-full-2016-10-31.zip
- Move it to the folder
corenlp-server
and extract it. - Using powershell from Project Root -
cd corenlp-server
and Executedocker build -t corenlp-server .
- This ensures that the docker container is now created.
- Install Docker - https://docs.docker.com/docker-for-mac/
- From Project Root -
cd corenlp-server
and get Stanford CoreNLP Server by executing-./get-corenlp.sh
- From Project Root -
cd corenlp-server
and Executedocker build -t corenlp-server .
- This ensures that the docker container is now created.
- From Project Root -
cd corenlp-server
and get Stanford CoreNLP Server by executing -./get-corenlp.sh
- Docker -
curl -sSL https://get.docker.com/ | sh -y
- Give docker local user rights -
sudo usermod -aG docker $USER
- Reboot Computer
- From Project Root -
cd corenlp-server
and Executedocker build -t corenlp-server .
- This ensures that the docker container is now created.
- Rename config-sample.json to config.json
- Change the configuration for MariaDB as per your computer
- Create a new database (by default it is called text_summarization).
- If you for some reason change the default name, change it in script.py as well.
- From Project Root -
python init-server.py
- From Project Root -
python terminate-server.py
- First Initialise Server.
- Please Edit script.py according to your requirements:
- Execute -
script.py
to give it a run. - To change input, edit
input/input.txt
- Execute -
- Once done with summarization make sure to terminate server.
- Check output.log
- Stats
- Templating
- Elementary OS (Ubuntu 16.04.02)
- If for some reason Docker container such as rejecting requests and acts weird Terminate Server and Reinitialise it!
- https://github.com/hotpxl/corenlp-server for Docker container setup and download script.