Update disrpt.py
Browse files
disrpt.py
CHANGED
@@ -88,9 +88,8 @@ def fix_mwe(sentence):
|
|
88 |
return sentence
|
89 |
|
90 |
def parse_conll_stream(file_stream):
|
91 |
-
names = ['id', 'form', 'lemma', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc']
|
92 |
sentence = {name: [] for name in names}
|
93 |
-
sentence["doc_id"]=""
|
94 |
mwe_id=[]
|
95 |
for line in file_stream:
|
96 |
line = line.strip()
|
|
|
88 |
return sentence
|
89 |
|
90 |
def parse_conll_stream(file_stream):
|
91 |
+
names = ['id', 'form', 'lemma', 'upos', 'xpos', 'feats', 'head', 'deprel', 'deps', 'misc','doc_id']
|
92 |
sentence = {name: [] for name in names}
|
|
|
93 |
mwe_id=[]
|
94 |
for line in file_stream:
|
95 |
line = line.strip()
|