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 8e31d6e commit ff77556Copy full SHA for ff77556
pythainlp/corpus/oscar.py
@@ -25,7 +25,7 @@ def word_freqs() -> List[Tuple[str, int]]:
25
"""
26
word_freqs = []
27
_path = get_corpus_path(_FILENAME)
28
- with open(_path, "r", encoding="utf-8") as f:
+ with open(_path, "r", encoding="utf-8-sig") as f:
29
_data = [i for i in f.readlines()]
30
del _data[0]
31
for line in _data:
0 commit comments