We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60fb16c commit 0bfff7bCopy full SHA for 0bfff7b
pythainlp/postaggers/text.py
@@ -10,7 +10,7 @@
10
template_file = os.path.join(templates_dir, 'thaipos.json')
11
#default_tagger = nltk.data.load(nltk.tag._POS_TAGGER)
12
def data():
13
- with codecs.open(template_file,'r',encoding='utf-8') as handle:
+ with codecs.open(template_file,'r',encoding='utf-8-sig') as handle:
14
model = json.load(handle)
15
return model
16
data1 =data()
0 commit comments