Skip to content

Commit f3653f7

Browse files
committed
remove_id added
1 parent eeda267 commit f3653f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

corenlp.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def parse_parser_results(text):
7878
if not line.startswith(" ") and line.endswith(")"):
7979
split_entry = re.split("\(|, ", line[:-1])
8080
if len(split_entry) == 3:
81-
rel, left, right = map(lambda x: x, split_entry)
81+
rel, left, right = map(lambda x: remove_id(x), split_entry)
8282
tmp['tuples'].append(tuple([rel,left,right]))
8383
elif "Coreference links" in line:
8484
state = 5

0 commit comments

Comments
 (0)