user_dict สำหรับ spell check โดยที่คำมีตัว ขีด - หรือเครื่องหมาย + ด้วย #612
-
| สวัสดีครับ ผมอยากจะใช้ spellcheck กับลิสต์ของคำที่ผมกำหนดเอง แต่ปรากฏว่าคำที่ผมใช้อ้างอิงมันมี - ด้วย เช่น สมคิด-สมศักดิ์ ปรากฎว่ามันไม่สามารถตรวจสอบคำสะกดที่มีตัว - ได้ เช่นทดสอบว่า checker.known(['สมคิด-สมศักดิ์]) มันก็บอกว่าไม่มีทั้ง ๆ ที่พิมพ์เหมือนกันเป๊ะ ๆ ไม่ทราบว่ามีวิธีแก้ไหมครับ ขอบคุณมากครับ |
Beta Was this translation helpful? Give feedback.
Answered by wannaphong Sep 24, 2021
Replies: 1 comment
-
| ให้เพิ่มคำที่ถูกต้องเข้าไปที่ dict ชื่อ words_th.txt ครับ อยู่ที่ pythainlp/corpus/words_th.txt ครับ https://github.com/PyThaiNLP/pythainlp/blob/dev/pythainlp/corpus/words_th.txt |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by wannaphong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
ให้เพิ่มคำที่ถูกต้องเข้าไปที่ dict ชื่อ words_th.txt ครับ อยู่ที่ pythainlp/corpus/words_th.txt ครับ https://github.com/PyThaiNLP/pythainlp/blob/dev/pythainlp/corpus/words_th.txt