-
Notifications
You must be signed in to change notification settings - Fork 274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature request]: Add Thai synonym corpus to PyThaiNLP #707
Comments
สวัสดีค่ะ สนใจอยากช่วยทำฟีเจอร์นี้ค่ะ เห็นคุณ @wannaphong เขียนโค้ดไว้แล้วตามลิงก์ในกระทู้ แต่ยังไม่ค่อยแน่ใจว่าต้องทำอะไรบ้าง เท่าที่เข้าใจคือ
$ python3 synonym.py
Text : ก๋ง
['ปิตามหะ', 'อัยกะ', 'อัยกา', 'ปู่', 'ขรัวตา', 'มาตามหะ', 'อัยกะ', 'อัยกา', 'ตา'] คุณ @wannaphong อยากให้เป็นแบบนี้หรอคะ $ python3 synonym.py
Text : ก๋ง
[['ปิตามหะ'], ['อัยกะ'], ['อัยกา'], ['ปู่'], ['ขรัวตา'], ['มาตามหะ'], ['อัยกะ'], ['อัยกา'], ['ตา']]
พอจะเข้าใจถูกบ้างมั้ยคะ เคยใช้ PyThaiNLP ในโปรเจคที่เคยทำอยู่แล้ว แต่เป็นมือใหม่เพิ่งจะลองหัดช่วยพัฒนาโปรแกรมในโอเพ่นซอร์สค่ะ อาจจะมีคำถามเยอะหน่อยนะคะ |
สวัสดีครับ ขอบคุณที่สนใจร่วมพัฒนา PyThaiNLP นะครับ ผมขอตอบคำถามตามนี้นะครับ
โดยรวมสร้างเป็นไฟล์ from pythainlp.corpus.synonym import synonym
synonym("แมว") # output: [...] |
ขอบคุณค่ะ เดี๋ยวทำตามนี้แล้วส่ง pull request ไปนะคะ ถ้ามีคำถามเพิ่ม เดี๋ยวแวะกลับมาค่ะ |
@sanittawan do you currently working on this? would you mind if we co-authored? if you're ok, i will make a PR within couple days (maybe today or tmrw) and ask for your collaboration to improve it (by mentioning you after i made a PR) in case that there has some part in my PR that you want to improve/contribute. What do you think? @wannaphong i have another question, it seems like you've added |
Sorry, my missing. This issue should closed. |
Detailed description
From https://github.com/PyThaiNLP/thai-synonym, I think we can add Thai synonym corpus to PyThaiNLP with search by word and output the data from the corpus.
Possible implementation
The text was updated successfully, but these errors were encountered: