PyThaiNLP / pythainlp

Thai Natural Language Processing in Python.
https://pythainlp.org/
Apache License 2.0
975 stars 272 forks source link

มี ตัวตัดคำไทย ด้วยภาษา c บ้างไหมครับ #913

Closed TridentTD closed 2 months ago

TridentTD commented 4 months ago

Detailed description

MCU ระดับเล็กๆ มักใช้ภาษา c/c++ อยากให้มี ThaiNLP ภาษา c ด้วยจะดีมากๆครับ

github-actions[bot] commented 4 months ago

Hello @TridentTD, thank you for your interest in our work!

If this is a bug report, please provide screenshots and minimum viable code to reproduce your issue, otherwise we can not help you.

bact commented 4 months ago

มี libthai ครับ https://github.com/tlwg/libthai

TridentTD commented 4 months ago

@bact ขอบคุณมากครับ

TridentTD commented 4 months ago

@bact

ตัว libthai ดูเหมือนว่า เป็น libthai ที่ต้องพึ่ง lib iconv ด้วย ในขณะที่ MCU เล็กๆ โดยปกติ ไม่ support iconv ให้แปลงได้เลย พอมีทางเป็นไปได้ไหม ที่ตัวตัดคำไทย จะมีสร้างเป็น c library แบบ mini เช่น mini_thaicut.c เพื่อให้ สามารถยืดหยุ่น ในการเคลื่อนย้ายไปรันบน MCU ต่างๆได้ ครับ

ขอบคุณครับ

wannaphong commented 4 months ago

พอยกตัวอย่าง MCU ที่ใช้ได้ไหมครับ

TridentTD commented 4 months ago

ESP32 เป็นต้นครับ

bact commented 4 months ago

ลองถามดูใน libthai ไหมครับ ว่าปัจจุบันรองรับ arch ไหนบ้าง