Skip to main content

A powerful python wraper for Stanford CoreNLP

Project description

# corenlp_pywrap

##CoreNLP v3.6.0

###Powerfull python wrapper for Stanford CoreNLP project

- Works only with python 3.x

- Beta version equiped with basic output fetch of stanfornlp

-

####Install

>pip install corenlp_pywrap



####Usage

```python

from corenlp_pywrap import pywrap

cn = pywrap.CoreNLP(url='http://localhost:9000', annotator_list=full_annotator_list)

#full_annotator_list = ["tokenize", "cleanxml", "ssplit", "pos", "lemma", "ner", "regexner", "truecase", "parse", "depparse", "dcoref", "relation", "natlog", "quote"]



#Calling basic function which would return a 'requests' object

out = cn.basic(data, out_format='json')

```

Remember 'out' would be 'requests' object, you can get information by using out.text or out.json()



Pywrap does not inherently support 'Sentiment' now as the downloadable server version of CoreNLP doesn't have 'Sentiment' support. But there is a hack for you to use (if you are sure that your server version is the newest one and has the support)

- You can give sentiment as an attribute to annotator_list while instantiating the class object

- or

```

annotator_list = CoreNLP.full_annotator_list + ['sentiment']

```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

corenlp_pywrap-0.0.9.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

corenlp_pywrap-0.0.9-py3-none-any.whl (5.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page