过期域名预定抢注

 找回密碼
 免费注册

請問SpinnerChief的SCAPI怎麼使用呢

[複製鏈接]
發表於 2011-5-5 15:38:04 | 顯示全部樓層 |閱讀模式
懸賞5點點未解決
剛才在本機上測試了一下,按照說明listen了ServerUrl=127.0.0.1:9001,然後test了一下,generate的文本沒有改寫....放到
: W7 J% \( n0 G2 e) @( \5 f) _請問大家還需要做哪些設置呢?菜鳥我實在搞不明白了 ,十分感謝大家的幫助。
# D1 u# `$ P) x. c$ s2 u9 z1 ~9 P3 ?0 Y% V  V6 b
官方說明如此:
  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.& |, c6 ~9 E6 y5 d( q
  2. ) G$ s; T& M) x- E# P, q) Y0 t
  3. 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.
      B8 g9 c3 d, ]4 \3 R! A. ^

  4. 1 q5 `, _7 ]' J' e+ I5 d& Q# F
  5. 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.
    % Q0 v5 l# a! D5 s/ l  a
  6. ) F  l3 W7 r7 g

  7. * j8 w: z% m) V/ I, D  h# k" X5 O
  8. OK, now let's go to the detail of SCAPI.
    # @; `3 K( P; U- ~1 G( c2 Q, V& \
  9. # F& u, E' D" `! n
  10. The http post url  is http://ip:port/spintype=0&spinfreq=4&synonymsdatabase=0&favoriatecategory=all&autospin=1
    % {; d( B  N! l" s" e. C

  11. / e' p6 T' ]" L3 u1 C6 e
  12. 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=12 i% v, Q$ M) A: z. M) g5 r/ a
  13. " f4 C! E, J6 g
  14. 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=13 e# x6 n, \6 m# s( |

  15. ) r  e! o- y8 s' {$ [
  16. The http post data is your article.  X4 Z* [9 v# e+ a( O" E" U, k& P
  17. % u4 G" W! ]( u7 b6 S
  18. 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}".# S* @6 k3 r( q" J% T  ^
  19. / @- N: E3 u- Y' g3 T9 g1 \
  20. 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".4 B9 W: V# E+ q2 J; w9 A; Q

  21. $ q5 E2 r" a& ]: m$ f
  22. 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.0 C7 w7 F9 N. T( S3 T/ S2 |4 h

  23. : u& C4 _7 k* L! B- C. q: g8 C2 |
  24. When synonymsdatabase=0, SpinnerChief will only use the synonyms database you loaded to spin the article.
    ) _# m; a6 D! X6 l- p7 G  h

  25. 8 @( Z2 G9 X1 u
  26. when synonymsdatabase=1, SpinnerChief will only your favoriate synonyms database to spin the article.
    9 Y" k0 N! B! L2 x$ a

  27. ( _$ [5 r$ n" w7 t$ o8 U2 X+ e
  28. when synonymsdatabase=2, SpinnerChief will use both the synonyms database you loaded and your favoriate synonyms database to spin the article.
    % |! f% R8 N, @- {

  29. ' w  [: T, ], P
  30. 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.
    5 I0 u# ^. O8 y
  31. & v+ u9 D4 K! R9 i. s2 v* Y
  32. 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.
    6 `# W6 B0 q+ u* d+ Q0 K; N
  33. 0 n* d% Y+ Q) Y1 h  E
  34. 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".
    - L8 ~; U* G- z
  35. ! j1 O: c1 b+ o
  36. 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#.
    / n) p8 j$ U; V  O( {3 a
複製代碼

 樓主| 發表於 2011-5-8 17:16:15 | 顯示全部樓層
問題我已經自己解決了。
7 a+ D, h% p/ D4 n是詞庫的問題,重新導入就OK了,還可以導入TBS詞庫,很方便。呵呵。
回復

使用道具 舉報

您需要登錄後才可以回帖 登錄 | 免费注册

本版積分規則

过期高净值品牌域名预定抢注

4um點基跨境網編創業社區

GMT+8, 2024-10-30 21:29

By DZ X3.5

小黑屋

快速回復 返回頂部 返回列表