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 fcadc2f commit 1f56415Copy full SHA for 1f56415
pythainlp/corpus/tnc.py
@@ -48,7 +48,7 @@ def word_freq(word: str, domain: str = "all") -> int:
48
49
r = requests.post(url, data=data)
50
51
- pat = re.compile(r'TOTAL</font>(?s).*?#ffffff">(.*?)</font>')
+ pat = re.compile(r'TOTAL</font>.*?#ffffff">(.*?)</font>', flags=re.DOTALL)
52
match = pat.search(r.text)
53
54
n = 0
0 commit comments