GithubHelp home page GithubHelp logo

corenlp's Introduction

CoreNLP

Package for process distribution of Standford's CoreNLP

Dependencies

  1. pyzmq package: Installation procedure can be found in this link http://zeromq.org/bindings:python

  2. CoreNLP python wrapper. Plese visit this link for installation https://bitbucket.org/torotoki/corenlp-python

  3. Install mongoDB and pymongo.

Additional settings for CoreNLP python module

a) Set up CoreNLP python wrapper as instructed in the website.

b) Go to the corenlp folder

cd corenlp

c) Then open the init.py file

d) Edit the line

from corenlp import batch_parse

as

from corenlp import batch_parse, parse_parser_results

e) Save the file

d) Go back to the previous folder

cd ..

f) Install corenlp modue

sudo python setup.py install

Running the code

a) Take a terminal and run the client

python client.py

b) Open the file worker.py and specify the folder path of Standford CoreNLP package

dir_cornlp = '/media/sda5/test/corenlp-python/stanford-corenlp-full-2014-01-04'

c) Then take another terminal and run worker.py also

python worker.py

d) Run db_manager.py in another terminal

python db_manager.py

If everything went right, you can see a log file in client folder named main_log.log which having the information of processing details of articles.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.