Skip to content

Commit

Permalink
The Jan 27 release of UNII includes latin-1 characters.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaurav committed Mar 12, 2024
1 parent 8b1a23d commit 4d292e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datahandlers/unii.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def make_labels_and_synonyms(inputfile,labelfile,synfile):
syncol = 0
wrotelabels = set()
wrotesyns = set()
with open(inputfile,'r') as inf, open(labelfile,'w') as lf, open(synfile,'w') as sf:
with open(inputfile,'r', encoding='latin-1') as inf, open(labelfile,'w') as lf, open(synfile,'w') as sf:
h = inf.readline()
for line in inf:
parts = line.strip().split('\t')
Expand Down

0 comments on commit 4d292e2

Please sign in to comment.