Learning NLP. Creating kids book reader and random questions generator.
wget http://nlp.stanford.edu/software/stanford-corenlp-full-2018-10-05.zip
unzip stanford-corenlp-full-2018-10-05.zip
cd stanford-corenlp-full-2018-10-05
nano run.sh
Create an executable file run.sh within
java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer \
-preload tokenize,ssplit,pos,lemma,ner,parse,depparse \
-status_port 9000 -port 9000 -timeout 15000 &
Some examples require summarize
Where “thepiratemodi” is the name of the text which must be available in books folder.
python example1.py "thepiratemodi"
Where “thepiratemodi” is the name of the text which must be available in books folder.
python example2.py "thepiratemodi"
Where “thepiratemodi” is the name of the text which must be available in books folder and 0.4 the ratio of summarization.
python example3.py "thepiratemodi" 0.4
Where “thepiratemodi” is the name of the text which must be available in books folder and 0.4 the ratio of summarization.
python example3.py "thepiratemodi" 0.4