Skip to content
/ su-lip Public

輸入臺語ê webservice, coded in OPA (compile into Node.js)

Notifications You must be signed in to change notification settings

a-tsioh/su-lip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

su-lip

輸入臺語ê webservice, coded in OPA (compile into Node.js)

Installing OPA

See https://github.com/MLstate/opalang/wiki/Getting-started#ubuntu-linux-debian-linux

Configuring Su-lip

Just set the path to the datafile in src/config.opa The file is plain text containing one word on each line, with 漢字 and TRS separated by '\t'

Running the server

Simply launch to compile and launch the project (on port 8080) make run

Loading the Data

while the server is running, make request on

http://localhost:8080/build_db

(build_db will only run once, you need to manually drop the mongodb base "IME" to reload the data)

Testing

Just make some query using POST and json.

curl localhost:8080/ws/ -d '{"query":"su-jip"}'

About

輸入臺語ê webservice, coded in OPA (compile into Node.js)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages