Skip to content

Commit beb1c9c

Browse files
committed
fixed code and updated version
1 parent ef3fc44 commit beb1c9c

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Python JSON-NLP Module
22

3-
(C) 2019 by [Damir Cavar], [Oren Baldinger], [Maanvitha Gongalla], Anurag Kumar, Murali Kammili
3+
(C) 2019 by [Damir Cavar], [Oren Baldinger], [Maanvitha Gongalla], [Anurag Kumar], Murali Kammili
44

55
Brought to you by the [NLP-Lab.org]!
66

@@ -112,6 +112,7 @@ Other parameters specific to your pipeline implementation can be passed as well:
112112

113113
[Damir Cavar]: http://damir.cavar.me/ "Damir Cavar"
114114
[Oren Baldinger]: https://oren.baldinger.me/ "Oren Baldinger"
115+
[Anurag Kumar]: https://github.com/anuragkumar95/ "Anurag Kumar"
115116
[Maanvitha Gongalla]: https://maanvithag.github.io/MaanvithaGongalla/
116117
[NLP-Lab.org]: http://nlp-lab.org/ "NLP-Lab.org"
117118
[JSON-NLP]: https://github.com/dcavar/JSON-NLP "JSON-NLP"

pyjsonnlp/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from typing import List
1515

1616
name = "pyjsonnlp"
17-
__version__ = "0.2.30"
17+
__version__ = "0.2.33"
1818

1919

2020
def get_base() -> OrderedDict:
@@ -113,7 +113,7 @@ def find_head(doc: OrderedDict, token_ids: List[int], sentence_id: int, style='u
113113
#print(sentence_id, doc['dependencies'],doc['dependencies']['trees'])
114114
if len(token_ids) == 0:
115115
return None
116-
arcs = doc['dependencies']['trees'][sentence_id-1]
116+
arcs = doc['dependencies'][sentence_id-1]['trees']
117117
govs = set(token_ids)
118118
for x in arcs:
119119
if x["dep"] in govs and x["gov"] in govs:

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setuptools.setup(
88
name="pyjsonnlp",
9-
version='0.2.30',
9+
version='0.2.33',
1010
python_requires='>=3.6',
1111
author="Damir Cavar, Oren Baldinger, Maanvitha Gongalla, Anurag Kumar, Murali Kammili",
1212
author_email="damir@cavar.me",

0 commit comments

Comments
 (0)