8000 Removed the remove_id method, let's see what happens · evanma92/stanford-corenlp-python@e9f5973 · GitHub
[go: up one dir, main page]

Skip to content

Commit e9f5973

Browse files
committed
Removed the remove_id method, let's see what happens
1 parent c17d656 commit e9f5973

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

corenlp/corenlp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
# along with this program; if not, write to the Free Software
1919
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
2020

21-
2221
import json
2322
import optparse
2423
import os
@@ -193,7 +192,7 @@ def parse_parser_results(text):
193192
else:
194193
split_entry = re.split("\(|, |-", line[:-1])
195194
if len(split_entry) == 5:
196-
rel, left, leftindex, right, rightindex = map(lambda x: remove_id(x), split_entry)
195+
rel, left, leftindex, right, rightindex = split_entry
197196
sentence['dependencies'].append(tuple([rel, left, leftindex, right, rightindex]))
198197

199198
elif state == STATE_COREFERENCE:
@@ -500,3 +499,4 @@ def batch_parse(input_folder, corenlp_path=DIRECTORY, memory="3g", raw_output=Fa
500499
except KeyboardInterrupt:
501500
print >>sys.stderr, "Bye."
502501
exit()
502+

0 commit comments

Comments
 (0)
0