Update qa_discourse.py
Browse files- qa_discourse.py +1 -1
qa_discourse.py
CHANGED
@@ -141,7 +141,7 @@ class QaDiscourse(datasets.GeneratorBasedBuilder):
|
|
141 |
"""
|
142 |
|
143 |
# merge annotations from sections
|
144 |
-
df = pd.concat([pd.read_csv(fn, sep='\t',
|
145 |
df = df.applymap(str) # must turn all values to strings explicitly to avoid type errors
|
146 |
for counter, row in df.iterrows():
|
147 |
# Prepare question (3 "slots" and question mark)
|
|
|
141 |
"""
|
142 |
|
143 |
# merge annotations from sections
|
144 |
+
df = pd.concat([pd.read_csv(fn, sep='\t', on_bad_lines='skip') for fn in filepaths]).reset_index(drop=True)
|
145 |
df = df.applymap(str) # must turn all values to strings explicitly to avoid type errors
|
146 |
for counter, row in df.iterrows():
|
147 |
# Prepare question (3 "slots" and question mark)
|