Replies: 6 comments
|
ผมคิดว่า
|
|
ผมลองตามที่ @cstorm125 เสนอครับ ใช้ _ (underscore), ใช้พหูพจน์, ใช้ suffix _th ต่อท้ายถ้าเป็นข้อมูลภาษาไทย |
|
Can we move these rules somewhere so we can close this? |
|
maybe wiki? |
|
Hi @wannaphong @bact @cstorm125 ตอบคำถาม Is it done? จากที่ตรวจโฟลเดอร์ pythainlp/corpus ใน main branch ปัจจุบัน สรุป: ทำไปแล้ว บางส่วน แต่ยังไม่ครบ 100% และยังไม่ได้ย้ายกติกาไปไว้ในเอกสารอย่างที่ @cstorm125 กับ @p16i เสนอ กติกาที่ทีมตกลงกันใน thread นี้ (2018):
ตัวอย่างที่ทำตามแล้วใน corpus ปัจจุบัน: stopwords_th.txt ตัวอย่างที่ยังไม่สม่ำเสมอ (legacy): tnc_freq.txt และ phupha_word_freqs.txt ไม่มี suffix _th ข้อเสนอเพื่อปิด discussion นี้:
CONTRIBUTING.md ปัจจุบันอ้างอิง namingconvention.org สำหรับ Python code แต่ยังไม่มี section เฉพาะ corpus data files ซึ่งเป็น gap ที่ discussion นี้พยายามแก้ ถ้า maintainer เห็นด้วย ผมแนะนำให้ @bact หรือ @wannaphong เปิด PR เพิ่ม section สั้นๆ ใน CONTRIBUTING.md แล้วปิด thread นี้ได้เลยครับ |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
ปัจจุบันไฟล์ใน pythainlp/corpus มีรูปแบบการตั้งชื่อที่ไม่สม่ำเสมอ
เสนอให้มีการใช้ชื่อที่สม่ำเสมอครับ เพื่อความสะดวกในการดูแลโค้ด (มีความคาดเดาได้บางอย่าง)
ตัวอย่าง
การใช้ _ หรือ - คั่นคำ
เอกพจน์หรือพหูพจน์
suffix/prefix แสดงภาษา
All reactions