Pullword api usage
Our services have been sponsored by jdcloud.com.

JD cloud can help us to build web site in all directions, details can be seen here

All data (input & output) must be utf8 encoded string

get method: http://api.pullword.com/get.php
source=[a paragraph of chinese words] for example: source=清华大学是好学校
param1=[threshold] for example: param1=0 to pull all word, param1=1 to pull word with probability with 100%.
param2=[debug] for example: param2=0 debug model is off, param2=1 debug mode in on(show all probabilities of each word)
点击使用get方式

注:
返回json格式,请在参数后面增加&json=1,例如:

京东云主机(上海机房)json格式


post method:
http://api.pullword.com/post.php
source=[a paragraph of chinese words] for example: source=清华大学是好学校
param1=[threshold] for example: param1=0 to pull all word, param1=1 to pull word with probability with 100%.
param2=[debug] for example: param2=0 debug model is off, param2=1 debug mode in on(show all probabilities of each word)
sample php code:

function httpPost($url,$postData)
{
  $ch = curl_init();
  curl_setopt($ch,CURLOPT_URL,$url);
  curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  curl_setopt($ch,CURLOPT_HEADER, false);
  curl_setopt($ch, CURLOPT_POST, count($postData));
  curl_setopt($ch, CURLOPT_POSTFIELDS, $postData);
  $output=curl_exec($ch);
  curl_close($ch);
  return $output;
}
echo httpPost("http://api.pullword.com/post.php","source=清华大学是个好学校&param1=0&param2=1");
特别注明:超过30个汉字的分词请求,清用get方法,不要用post方法,否则会效率低,且会出错。



R method(R language):
An R package for pullword.com,support by (sina weibo: @严酷的魔王) details: https://github.com/hetong007/pullword

Python method:
An Python package for pullword.com, support by(sina weibo:@何斌_HUST) details: https://github.com/binhe22/pullword


Golang method:
A Golang package for pullword.com. support by(sina weibo:@邓宏才-GZ) details: https://github.com/denghongcai/pullword

json method:
output as json for pullword.com, support by(小问) details:https://pullword.leanapp.cn

perl client
pullword - The perl agent for Pullword(a online Chinese segmentation System) api! . 感谢 @double-桔 友情提供
details: github.com/bollwarm/pollword

go lang
client for pullword with golang 感谢 @姜灏 友情提供
details: github.com/tiantour/pw




Result format
all results are formatted as follow
word1\r\n
word2\r\n
...
wordn\r\n
\r\n\r\n
if debug mode is on
word1:probability(word1)\r\n
word2:probability(word2)\r\n
...
wordn:probability(wordn)\r\n
\r\n\r\n

Online Demo
go our online demo -> go

Donation addresss:
zhifubao: mgigabyte@gmail.com
PayPal : pennynju@gmail.com

Other information
just for fun! and these APIs are free for everbody for ever and for any purpose without the permission of ours.

however, if you find any bad case, pleas email us : mgigabyte@gmail.com


Our domain is bought from Godaddy.com and DNS service is bought from dnspod.cn respectively.

后台云主机赞助人名单(donate list):
冯厂长 赞助2014-7月的主机费用(@Fenng)
程先生 赞助2014-8月的主机费用
刘老师 赞助2014-9月的主机费用
周鸿祎 赞助2014-10月的主机费用
曾经的阿里码农 赞助2014-11月的主机费用
梁斌 赞助2014-12月的主机费用
@qiuyuexp 赞助2015-1月的主机费用
刘老师 赞助2015-2月的主机费用(第二次)
@董方_Vin 赞助2015-3月的主机费用
@搬运大数据的亨利 赞助2015-4月的主机费用
英老师 赞助2015-5月的主机费用
@美团云 @string_tang 赞助2015-6月到2017年-6月的全部云主机
@美团云 赞助3000元 应对2016-6月高峰流量
董永乐-1997博-上海 赞助2017-7月的主机费用
Leon 赞助2018年4月的主机费用
京东云赞助2018年5月到2019年4月的全部机器费用,京东云网站解决方案,全方位满足您的建站需求,详见这里



服务提供商:北京八友科技有限公司
电话:010-56037785
手机:13366254629


备案号:京ICP备16014169号