EEfaq论坛-赚客自留地

 找回密码
 免费注册
查看: 1732|回复: 1

请问SpinnerChief的SCAPI怎么使用呢

[复制链接]
发表于 2011-5-5 15:38:04 | 显示全部楼层 |阅读模式
5e币
刚才在本机上测试了一下,按照说明listen了ServerUrl=127.0.0.1:9001,然后test了一下,generate的文本没有改写....放到
请问大家还需要做哪些设置呢?菜鸟我实在搞不明白了 ,十分感谢大家的帮助。

官方说明如此:
  1. SpinnerChief Developer API provides an easy interface to programmers to use spinnerchief's function in themselves program directly. For easy, we call it SCAPI now.

  2. SCAPI is very easy to use. It uses Http Post protocol to accept your command and give back result.Basically, you can see SpinnerChief as a spinner server, you can post your articles to SpinnerChief and then SpinnerChief will return new articles. So you can just run SpinnerChief at your local computer and set the listen ip and port to be 127.0.0.1:9001, and use yourself program to communicate with SpinnerChief by http protocol. Or you can run SpinnerChief on a real server and set the server's ip and a port in SpinnerChief, and use your program to connect Spinnerchief remotely by the same http protocol.

  3. For enable SpinnerChief to work as a spinner server, you need click the "Begin to listen" button in the "Developer API" tab in SpinnerChief program. After that, you can begin to send command to SpinnerChief. If you want to stop SpinnerChief as spinner server, just click the "Stop" button.


  4. OK, now let's go to the detail of SCAPI.

  5. The http post url  is http://ip:port/spintype=0&spinfreq=4&synonymsdatabase=0&favoriatecategory=all&autospin=1

  6. If you run spinnerchief as spinner server at local computer, the post url will be like http://127.0.0.1:9001/spintype=0&spinfreq=4&synonymsdatabase=0&favoriatecategory=all&autospin=1

  7. If you run spinnerchief as spinner server at your server, the post url will be like http://yourserverip:9001/spintype=0&spinfreq=4&synonymsdatabase=0&favoriatecategory=all&autospin=1

  8. The http post data is your article.

  9. When spintype=0, SpinnerChief will return {} format spun artilce. For example, your article is "This is a great software", the return will be "{It|This} {is|must be} a {good|nice} {software|program}".

  10. when spintype=1, SpinnerChief will return spun artilce directly. For example, your article is "This is a great software", the return will be "It is a nice program".

  11. The spinfreq means word spin frequency, for example if spinfreq=1, every words will be spun, if spinfreq=3, 1/3 words will be spun, etc.

  12. When synonymsdatabase=0, SpinnerChief will only use the synonyms database you loaded to spin the article.

  13. when synonymsdatabase=1, SpinnerChief will only your favoriate synonyms database to spin the article.

  14. when synonymsdatabase=2, SpinnerChief will use both the synonyms database you loaded and your favoriate synonyms database to spin the article.

  15. When you set synonymsdatabase to be 1 or 2, you need set the favoriatecategory parameter, favoriatecategory means the synonyms category you want to use to spin the article.

  16. When autospin=0, SpinnerChief will not spin the words in your article without {} format. For example, if you post an article like "{It|This} is a good software", SpinnerChief will only spin {It|This} part, other words will not get spun.

  17. When autospin=1, SpinnerChief will auto-spin the words in your article without {} format. For example, if you post an article like "{It|This} is a good software", SpinnerChief will not only spin {It|This} part, but also spin the words "good" and "software", so the return would be "This is a great program".

  18. Ok, that is all. Now you can get a demo code to use SCAPI, download the source code at http://download.spinnerchief.com/scapi.zip, this is written using c#.
复制代码

 楼主| 发表于 2011-5-8 17:16:15 | 显示全部楼层
问题我已经自己解决了。
是词库的问题,重新导入就OK了,还可以导入TBS词库,很方便。呵呵。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 免费注册

本版积分规则

QQ|联系我们|Archiver|手机版|小黑屋|EEfaq论坛

GMT+8, 2024-12-23 09:01

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表