A segment script

usage: segment(content)
The content parameter is the text you want to segment which is encoded
in GBK ( or if you want to use UTF-8, just modify the last line), and
the sever will return a JSON object.