Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
Libraries:
Datasets
pandas
License:
sileod commited on
Commit
0fea600
1 Parent(s): 3722acf

Update disrpt.py

Browse files
Files changed (1) hide show
  1. disrpt.py +1 -2
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()