Mohammad Al-Fetyani
commited on
Commit
•
8b370cd
1
Parent(s):
7069369
Remove unnecessary code
Browse files
names.py
CHANGED
@@ -67,9 +67,6 @@ class Names(datasets.GeneratorBasedBuilder):
|
|
67 |
data = csv.reader(f, delimiter="\t")
|
68 |
next(data, None) # skip the headers
|
69 |
for row_id, row in enumerate(data):
|
70 |
-
# if any of the fields is missing, skip the row
|
71 |
-
if any(field is None for field in row):
|
72 |
-
continue
|
73 |
name, description, origin = row
|
74 |
yield row_id, {
|
75 |
"name": name,
|
|
|
67 |
data = csv.reader(f, delimiter="\t")
|
68 |
next(data, None) # skip the headers
|
69 |
for row_id, row in enumerate(data):
|
|
|
|
|
|
|
70 |
name, description, origin = row
|
71 |
yield row_id, {
|
72 |
"name": name,
|