Skip to content

Commit

Permalink
version 1.0.5, changed fillers from null to 0
Browse files Browse the repository at this point in the history
  • Loading branch information
boat-builder committed Aug 14, 2016
1 parent 07908e8 commit e459bd4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
@@ -1,7 +1,7 @@
# corenlp_pywrap 1.0.4
# corenlp_pywrap 1.0.5
######Powerfull python wrapper for Stanford CoreNLP project

[![GitHub release](https://img.shields.io/badge/release-1.0.4-green.svg?maxAge=2592000)](https://github.com/hhsecond/corenlp_pywrap/releases) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/hhsecond/corenlp_pywrap/blob/master/LICENCE.txt) [![PyPI](https://img.shields.io/pypi/wheel/Django.svg?maxAge=2592000)](https://pypi.python.org/pypi/corenlp_pywrap)
[![GitHub release](https://img.shields.io/badge/release-1.0.5-green.svg?maxAge=2592000)](https://github.com/hhsecond/corenlp_pywrap/releases) [![license](https://img.shields.io/github/license/mashape/apistatus.svg?maxAge=2592000)](https://github.com/hhsecond/corenlp_pywrap/blob/master/LICENCE.txt) [![PyPI](https://img.shields.io/pypi/wheel/Django.svg?maxAge=2592000)](https://pypi.python.org/pypi/corenlp_pywrap)


##CoreNLP v3.6.0
Expand Down
4 changes: 2 additions & 2 deletions corenlp_pywrap/example.py
@@ -1,8 +1,8 @@
import pywrap as p
import logging
p.root.setLevel(logging.WARNING)
p.root.setLevel(logging.DEBUG)
cn = p.CoreNLP()
sent = '''Well, that is it then. Zimbabwe have thrashed Afghanistan for 1.0 and FOUR runs'''
sent = ''' .cb-list-heading{font-weight:normal!important} MOBILE SITE & APPSm.cricbuzz.comAndroidiOSWindows MobileBlackberryChrome ExtensionFOLLOW US ONfacebooktwittergoogle+PinterestRSS FeedCOMPANYCareersAdvertisePrivacy PolicyTerms of UseCricbuzz TV Ads© 2016 Cricbuzz.com, Times Internet Limited. All rights reserved | The Times of India | Navbharat Timesvar script_tag = document.getElementsByTagName('script')[0]; (function() { var cmin = document.createElement('script'); cmin.type = 'text/javascript'; cmin.async = true; cmin.src = 'http://i.cricketcb.com/statics/site/js/cricbuzz.min.1466404921.js'; script_tag.parentNode.insertBefore(cmin, script_tag); })();(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PGNCT7'); 0'''
r = cn.arrange(sent)
print(len(r['index']))
print(len(r['word']))
Expand Down
2 changes: 1 addition & 1 deletion corenlp_pywrap/pywrap.py
Expand Up @@ -128,7 +128,7 @@ def process_sentences(sentences):

#workaround to handle length inconsistancie with normalizedNER, rethink the logic
if 'ner' in val.keys() and 'normalizedNER' not in val.keys():
token_dict['normalizedNER'].append('')
token_dict['normalizedNER'].append(0)

for key, val in val.items():
if key == 'index':
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Expand Up @@ -2,15 +2,15 @@
from setuptools import setup
setup(
name = "corenlp_pywrap",
version = "1.0.4",
version = "1.0.5",
author = "hhsecond",
author_email = "sherinct@live.com",
description = ("A powerful python wraper for Stanford CoreNLP"),
license = "MIT",
keywords = "stanford corenlp wrapper",
install_requires=['requests'],
url = "https://www.github.com/hhsecond/corenlp_pywrap",
download_url = "https://www.github.com/hhsecond/corenlp_pywrap/tarball/1.0.4",
download_url = "https://www.github.com/hhsecond/corenlp_pywrap/tarball/1.0.5",
packages=['corenlp_pywrap'],
long_description='Production Ready version equiped with basic'\
'output fetch of stanfornlp and custom arrange function, '\
Expand Down

0 comments on commit e459bd4

Please sign in to comment.