Skip to content

Commit 0bfff7b

Browse files
committed
fix utf-8 to utf-8-sig
1 parent 60fb16c commit 0bfff7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythainlp/postaggers/text.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
template_file = os.path.join(templates_dir, 'thaipos.json')
1111
#default_tagger = nltk.data.load(nltk.tag._POS_TAGGER)
1212
def data():
13-
with codecs.open(template_file,'r',encoding='utf-8') as handle:
13+
with codecs.open(template_file,'r',encoding='utf-8-sig') as handle:
1414
model = json.load(handle)
1515
return model
1616
data1 =data()

0 commit comments

Comments
 (0)