mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 16:22:29 +03:00
* Merge changes from stash
This commit is contained in:
parent
23c1f6fc04
commit
8715101239
|
@ -61,8 +61,13 @@ def read_docparse_gold(file_):
|
||||||
tags = []
|
tags = []
|
||||||
ids = []
|
ids = []
|
||||||
lines = sent_str.strip().split('\n')
|
lines = sent_str.strip().split('\n')
|
||||||
|
<<<<<<< HEAD
|
||||||
raw_text = lines.pop(0).strip()
|
raw_text = lines.pop(0).strip()
|
||||||
tok_text = lines.pop(0).strip()
|
tok_text = lines.pop(0).strip()
|
||||||
|
=======
|
||||||
|
raw_text = lines.pop(0)
|
||||||
|
tok_text = lines.pop(0)
|
||||||
|
>>>>>>> master
|
||||||
for i, line in enumerate(lines):
|
for i, line in enumerate(lines):
|
||||||
id_, word, pos_string, head_idx, label = _parse_line(line)
|
id_, word, pos_string, head_idx, label = _parse_line(line)
|
||||||
if label == 'root':
|
if label == 'root':
|
||||||
|
|
Loading…
Reference in New Issue
Block a user