Datasets:
Update ViHOS.py
Browse files
ViHOS.py
CHANGED
|
@@ -66,7 +66,7 @@ class ViHOS(datasets.GeneratorBasedBuilder):
|
|
| 66 |
colnames=['id', 'Content', 'Span ids']
|
| 67 |
|
| 68 |
# with open(filepath, 'r', encoding="utf-8") as f:
|
| 69 |
-
data = pd.read_csv(filepath, names=colnames, header = None, sep=",")
|
| 70 |
for i in range(len(data)):
|
| 71 |
id = data.loc[i, 'id']
|
| 72 |
Content = data.loc[i, 'Content']
|
|
|
|
| 66 |
colnames=['id', 'Content', 'Span ids']
|
| 67 |
|
| 68 |
# with open(filepath, 'r', encoding="utf-8") as f:
|
| 69 |
+
data = pd.read_csv(filepath, names=colnames, header = None, sep=",",on_bad_lines='skip')
|
| 70 |
for i in range(len(data)):
|
| 71 |
id = data.loc[i, 'id']
|
| 72 |
Content = data.loc[i, 'Content']
|