Skip to content

datawiz-thailand/pythaiapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PyThaiAPI

PyThaiNLP based REST API

API Reference

Method: POST
Endpoint: /api/word_tokenize
Header: "Content-Type: application/json"
Params: ?engine=newmm&keep_whitespace=false
Body: {"text": "ทดสอบการตัดคำ"}

Using cURL request

curl -X POST \
'https://pythaiapi.herokuapp.com/api/word_tokenize?engine=attacut&keep_whitespace=true' \
-H 'Content-Type: application/json' \
-d '{"text":"ทดสอบภาษาไทย"}' | json_pp