项目作者: valntinaf

项目描述 :
Learning NLP. Creating kids book reader and random questions generator.
高级语言: Python
项目地址: git://github.com/valntinaf/elemento.git
创建时间: 2020-02-08T12:27:18Z
项目社区:https://github.com/valntinaf/elemento

开源协议:

下载


Elemento

Stanford CoreNLP installation

Requirements

  • graphviz
  1. wget http://nlp.stanford.edu/software/stanford-corenlp-full-2018-10-05.zip
  2. unzip stanford-corenlp-full-2018-10-05.zip
  3. cd stanford-corenlp-full-2018-10-05
  4. nano run.sh

Create an executable file run.sh within

  1. java -mx4g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer \
  2. -preload tokenize,ssplit,pos,lemma,ner,parse,depparse \
  3. -status_port 9000 -port 9000 -timeout 15000 &

Some examples require summarize

Examples execution examples

Example 1: Getting Idea’s dictionary from text

Where “thepiratemodi” is the name of the text which must be available in books folder.

  1. python example1.py "thepiratemodi"

Example 2: Generating questions from text

Where “thepiratemodi” is the name of the text which must be available in books folder.

  1. python example2.py "thepiratemodi"

Example 3: Getting Idea’s dictionary from summarized text

Where “thepiratemodi” is the name of the text which must be available in books folder and 0.4 the ratio of summarization.

  1. python example3.py "thepiratemodi" 0.4

Example 4: Generating questions from summarized text

Where “thepiratemodi” is the name of the text which must be available in books folder and 0.4 the ratio of summarization.

  1. python example3.py "thepiratemodi" 0.4