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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file corenlp_pywrap-0.0.9.tar.gz.

File metadata

File hashes

Hashes for corenlp_pywrap-0.0.9.tar.gz
Algorithm Hash digest
SHA256 dc5e5927f87e9ef49b6f1ae367e2001e6de08b97764ac6d11a66db66b7c8be40
MD5 634bffe100f52797fda1c3832c1b9510
BLAKE2b-256 09c6556d2e4ac2fd9ee99c08abbd684a2a363aa8642262ec53156b788f4d9dff

See more details on using hashes here.

File details

Details for the file corenlp_pywrap-0.0.9-py3-none-any.whl.

File metadata

File hashes

Hashes for corenlp_pywrap-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 5abe1d5db976732437c629a16654eca1cc9bbbc9c8eaa87bd5b70c209a4f7797
MD5 d02bc59bb66ab5180bd3de0c3488c581
BLAKE2b-256 beea58e3f4c13772d87c36cc300c6c999d01138474c4136d8a98cda392632601

See more details on using hashes here.

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