Merge pull request #1932 from mozilla/check_characters
skip file header of CSV file when reading alphabet
This commit is contained in:
commit
1276700c02
@ -37,6 +37,7 @@ for inFile in (inFiles):
|
||||
with open(inFile, "r") as csvFile:
|
||||
reader = csv.reader(csvFile)
|
||||
try:
|
||||
next(reader, None) # skip the file header (i.e. "transcript")
|
||||
for row in reader:
|
||||
allText |= set(str(row[2]))
|
||||
except IndexError as ie:
|
||||
|
Loading…
x
Reference in New Issue
Block a user