|
刚才在本机上测试了一下,按照说明listen了ServerUrl=127.0.0.1:9001,然后test了一下,generate的文本没有改写....放到
请问大家还需要做哪些设置呢?菜鸟我实在搞不明白了 ,十分感谢大家的帮助。
官方说明如此:- 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.
- 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.
- 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.
- OK, now let's go to the detail of SCAPI.
- The http post url is http://ip:port/spintype=0&spinfreq=4&synonymsdatabase=0&favoriatecategory=all&autospin=1
- 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
- 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
- The http post data is your article.
- 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}".
- 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".
- 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.
- When synonymsdatabase=0, SpinnerChief will only use the synonyms database you loaded to spin the article.
- when synonymsdatabase=1, SpinnerChief will only your favoriate synonyms database to spin the article.
- when synonymsdatabase=2, SpinnerChief will use both the synonyms database you loaded and your favoriate synonyms database to spin the article.
- 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.
- 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.
- 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".
- 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#.
复制代码 |
|