forked from NVIDIA/NeMo-Curator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extraction for Thai text (NVIDIA#304)
* add thai stopwords Signed-off-by: Sarah Yurick <[email protected]> * run black Signed-off-by: Sarah Yurick <[email protected]> --------- Signed-off-by: Sarah Yurick <[email protected]>
- Loading branch information
1 parent
8af2545
commit 924836f
Showing
2 changed files
with
124 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
thai_stopwords = frozenset( | ||
[ | ||
"กล่าว", | ||
"กว่า", | ||
"กัน", | ||
"กับ", | ||
"การ", | ||
"ก็", | ||
"ก่อน", | ||
"ขณะ", | ||
"ขอ", | ||
"ของ", | ||
"ขึ้น", | ||
"คง", | ||
"ครั้ง", | ||
"ความ", | ||
"คือ", | ||
"จะ", | ||
"จัด", | ||
"จาก", | ||
"จึง", | ||
"ช่วง", | ||
"ซึ่ง", | ||
"ดัง", | ||
"ด้วย", | ||
"ด้าน", | ||
"ตั้ง", | ||
"ตั้งแต่", | ||
"ตาม", | ||
"ต่อ", | ||
"ต่าง", | ||
"ต่างๆ", | ||
"ต้อง", | ||
"ถึง", | ||
"ถูก", | ||
"ถ้า", | ||
"ทั้ง", | ||
"ทั้งนี้", | ||
"ทาง", | ||
"ทำ", | ||
"ทำให้", | ||
"ที่", | ||
"ที่สุด", | ||
"ทุก", | ||
"นอกจาก", | ||
"นัก", | ||
"นั้น", | ||
"นำ", | ||
"นี้", | ||
"น่า", | ||
"บาง", | ||
"ผล", | ||
"ผ่าน", | ||
"พบ", | ||
"พร้อม", | ||
"มา", | ||
"มาก", | ||
"มี", | ||
"ยัง", | ||
"รวม", | ||
"ระหว่าง", | ||
"รับ", | ||
"ราย", | ||
"ร่วม", | ||
"ลง", | ||
"วัน", | ||
"ว่า", | ||
"สำหรับ", | ||
"สุด", | ||
"ส่ง", | ||
"ส่วน", | ||
"หนึ่ง", | ||
"หรือ", | ||
"หลัง", | ||
"หลังจาก", | ||
"หลาย", | ||
"หาก", | ||
"อยาก", | ||
"อยู่", | ||
"อย่าง", | ||
"ออก", | ||
"อะไร", | ||
"อาจ", | ||
"อีก", | ||
"เขา", | ||
"เข้า", | ||
"เคย", | ||
"เฉพาะ", | ||
"เช่น", | ||
"เดียว", | ||
"เดียวกัน", | ||
"เนื่องจาก", | ||
"เปิด", | ||
"เปิดเผย", | ||
"เป็น", | ||
"เป็นการ", | ||
"เพราะ", | ||
"เพื่อ", | ||
"เมื่อ", | ||
"เรา", | ||
"เริ่ม", | ||
"เลย", | ||
"เห็น", | ||
"เอง", | ||
"แต่", | ||
"แบบ", | ||
"แรก", | ||
"และ", | ||
"แล้ว", | ||
"แห่ง", | ||
"โดย", | ||
"ใน", | ||
"ให้", | ||
"ได้", | ||
"ไป", | ||
"ไม่", | ||
"ไว้", | ||
] | ||
) |