Skip to content

edouard-lopez/sinoparserd

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sinoparserd

A service to convert chinese languages (mandarin. cantonese. shanghainese..) into their transliterated form. to segment them etc.

The license only apply to the source code The data files are provided only as example

Requirement

  • libexpat
  • libevent

Install

If you never used cmake have a look at this tutorial.

git clone git://github.com/allan-simon/sinoparserd
sudo apt-get install libexpat1{,-dev} libevent-{2.0-5,dev} cmake
cd sinoparserd/ && cmake ./ && make

This should output something like:

compilation screenshot

Usage

./sinoparserd -c  doc/cantonese.xml -m doc/mandarin.xml -p PORT

That will launch an HTTP server listening on port PORT. If the option -p is missing it will listen on port 8080

it provides the following API call, that will return a XML answer

License

All the source code is licensed under GPLv3, the xml files are under their own license, it's a "open one" but i need to check which one, certainly CC-BY-SA so for the moment I would recommend people to use their own data files for "public usage" and use the provided xml only for "test" purpose.

About

A service to convert chinese languages (mandarin. cantonese. shanghainese..) into their transliterated form. to segment them etc.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 60.1%
  • C++ 39.9%