wlapi 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. data/README +14 -3
  2. data/doc/INSTALL.html +2 -0
  3. data/doc/LICENSE.html +2 -0
  4. data/doc/README.html +28 -1
  5. data/doc/WLAPI.html +12 -863
  6. data/doc/WLAPI/API.html +1008 -0
  7. data/doc/created.rid +6 -1
  8. data/doc/{bin → example}/example_rb.html +13 -2
  9. data/doc/images/brick.png +0 -0
  10. data/doc/images/brick_link.png +0 -0
  11. data/doc/images/bug.png +0 -0
  12. data/doc/images/bullet_black.png +0 -0
  13. data/doc/images/bullet_toggle_minus.png +0 -0
  14. data/doc/images/bullet_toggle_plus.png +0 -0
  15. data/doc/images/date.png +0 -0
  16. data/doc/images/find.png +0 -0
  17. data/doc/images/loadingAnimation.gif +0 -0
  18. data/doc/images/macFFBgHack.png +0 -0
  19. data/doc/images/package.png +0 -0
  20. data/doc/images/page_green.png +0 -0
  21. data/doc/images/page_white_text.png +0 -0
  22. data/doc/images/page_white_width.png +0 -0
  23. data/doc/images/plugin.png +0 -0
  24. data/doc/images/ruby.png +0 -0
  25. data/doc/images/tag_green.png +0 -0
  26. data/doc/images/wrench.png +0 -0
  27. data/doc/images/wrench_orange.png +0 -0
  28. data/doc/images/zoom.png +0 -0
  29. data/doc/index.html +127 -20
  30. data/doc/js/darkfish.js +116 -0
  31. data/doc/js/jquery.js +32 -0
  32. data/doc/js/quicksearch.js +114 -0
  33. data/doc/js/thickbox-compressed.js +10 -0
  34. data/doc/lib/wlapi_rb.html +2 -2
  35. data/example/example.rb +2 -0
  36. data/lib/wlapi.rb +8 -7
  37. data/wlapi.gemspec +5 -3
  38. metadata +51 -39
  39. data/doc/classes/WLAPI.html +0 -121
  40. data/doc/classes/WLAPI/API.html +0 -463
  41. data/doc/classes/WLAPI/API.src/M000001.html +0 -51
  42. data/doc/classes/WLAPI/API.src/M000002.html +0 -18
  43. data/doc/classes/WLAPI/API.src/M000003.html +0 -18
  44. data/doc/classes/WLAPI/API.src/M000004.html +0 -18
  45. data/doc/classes/WLAPI/API.src/M000005.html +0 -20
  46. data/doc/classes/WLAPI/API.src/M000006.html +0 -19
  47. data/doc/classes/WLAPI/API.src/M000007.html +0 -20
  48. data/doc/classes/WLAPI/API.src/M000008.html +0 -19
  49. data/doc/classes/WLAPI/API.src/M000009.html +0 -19
  50. data/doc/classes/WLAPI/API.src/M000010.html +0 -19
  51. data/doc/classes/WLAPI/API.src/M000011.html +0 -18
  52. data/doc/classes/WLAPI/API.src/M000012.html +0 -18
  53. data/doc/classes/WLAPI/API.src/M000013.html +0 -18
  54. data/doc/classes/WLAPI/API.src/M000014.html +0 -18
  55. data/doc/classes/WLAPI/API.src/M000015.html +0 -18
  56. data/doc/classes/WLAPI/API.src/M000016.html +0 -18
  57. data/doc/classes/WLAPI/API.src/M000017.html +0 -18
  58. data/doc/files/example/example_rb.html +0 -119
  59. data/doc/files/lib/wlapi/wlapi_rb.html +0 -122
  60. data/doc/fr_class_index.html +0 -28
  61. data/doc/fr_file_index.html +0 -28
  62. data/doc/fr_method_index.html +0 -43
  63. data/doc/rdoc-style.css +0 -208
  64. data/example/example.rb~ +0 -2
@@ -0,0 +1,10 @@
1
+ /*
2
+ * Thickbox 3 - One Box To Rule Them All.
3
+ * By Cody Lindley (http://www.codylindley.com)
4
+ * Copyright (c) 2007 cody lindley
5
+ * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
6
+ */
7
+
8
+ var tb_pathToImage = "../images/loadingAnimation.gif";
9
+
10
+ eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<U 5=\'1F\'></U><4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' /></4>");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D<E.1c)&&(R===""));D++){6 k=E[D].u.1C().2h(i);3(!(E[D].u==f)){3(1r){1z=E[D].Q;1x=E[D].u;R="<1e 5=\'1X\'>&1d;&1d;<a u=\'#\'>2T &2R;</a></1e>"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;<a u=\'#\'>&2O; 2N</a></1e>"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<a u=\'\' 5=\'1L\' Q=\'1o\'><1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/></a>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"</4></4><4 5=\'2A\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4>");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4></4><U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\' > </U>")}n{$("#B").N();$("#8").q("<U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\'> </U>")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\'>1l</a> 1k 1j 1s</4></4><4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'></4>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'></4>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i<c.1c;i++){6 d=c[i].1B(\'=\');3(!d||d.1c!=2){39}6 e=2a(d[0]);6 f=2a(d[1]);f=f.2r(/\\+/g,\' \');b[e]=f}H b}9 2x(){6 a=o.2M;6 w=1S.2o||1R.2o||(a&&a.1Q)||o.v.1Q;6 h=1S.1P||1R.1P||(a&&a.2n)||o.v.2n;1O=[w,h];H 1O}9 1K(){6 a=2K.2J.1C();3(a.O(\'2I\')!=-1&&a.O(\'3o\')!=-1){H 1b}}',62,211,'|||if|div|id|var||TB_window|function||||||||||||||else|document|px|append|css|click||href|body||||width|height|TB_overlay|remove|TB_Counter|TB_TempArray|TB_ajaxContent|tb_remove|return|keycode|style|TB_load|src|null|unbind|indexOf|false|title|TB_NextHTML|imgPreloader|block|iframe|ajaxContentH|ajaxContentW|this|display|TB_closeWindowButton||html|goPrev|TB_WIDTH|TB_PrevHTML|TB_iframeContent|tb_position||thickbox|tb_show|TB_HEIGHT|true|length|nbsp|span|Math|onload|onkeydown|goNext|Esc|or|close|tb_showIframe|TB_imageCount|Close|new|browser|TB_FoundURL|Key|Image|tb_init|name|imgLoader|TB_NextURL|random|TB_NextCaption|modal|split|toLowerCase|TB_PrevCaption|urlNoQuery|TB_HideSelect|TB_PrevURL|TB_ajaxWindowTitle|img|addClass|tb_detectMacXFF|TB_ImageOff|150|rel|arrayPageSize|innerHeight|clientWidth|self|window|children|TB_prev|jQuery|frameborder|TB_next|getElementById|auto|parseInt|onkeyup|overflow|alt|unload|for|inlineId||100||unescape|1000|round|hspace|TB_closeAjaxWindow|TB_title|undefined|match|maxHeight|TB_iframe|bmp|gif|png|clientHeight|innerWidth|tb_parseQuery|jpeg|replace|jpg|typeof|which|keyCode|event|tb_getPageSize|show|TB_overlayBG|TB_closeWindow|TB_overlayMacFFBGHack|TB_secondLine|TB_caption|blur|TB_Image|60|tb_pathToImage|mac|userAgent|navigator|of|documentElement|Prev|lt|version|msie|gt|ready|Next|marginLeft|trigger|fast|fadeOut|TB_imageOff|hidden||catch|getTime|Date|load|safari|get|TB_inline|marginTop|continue|scrollTop|TB_modal|class|TB_|45|440|40|630|input|188|190|substr|try|area|firefox'.split('|'),0,{}))
@@ -24,7 +24,7 @@
24
24
  <div id="metadata">
25
25
  <dl>
26
26
  <dt class="modified-date">Last Modified</dt>
27
- <dd class="modified-date">2010-10-31 19:08:31 +0100</dd>
27
+ <dd class="modified-date">Sun Nov 14 22:22:27 +0100 2010</dd>
28
28
 
29
29
 
30
30
  <dt class="requires">Requires</dt>
@@ -48,7 +48,7 @@
48
48
  <div class="description">
49
49
  <h2>Description</h2>
50
50
  <p>
51
- 2010-, Andrei Beliankou Version: 0.3
51
+ 2010-, Andrei Beliankou Version: 0.0.4
52
52
  </p>
53
53
 
54
54
  </div>
@@ -1,3 +1,5 @@
1
+ # See the source for some example invocations.
2
+ # --
1
3
  # this string no more actual for Rubygems invokation
2
4
  #$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/../lib'))
3
5
 
@@ -1,5 +1,5 @@
1
1
  # 2010-, Andrei Beliankou
2
- # Version: 0.3
2
+ # Version: 0.0.4
3
3
  # :title: Ruby based API for Wortschatz Leipzig web services
4
4
 
5
5
 
@@ -10,12 +10,13 @@ require 'savon'
10
10
  require 'rexml/document'
11
11
  include REXML
12
12
 
13
- # This class represents an interface to the linguistic web services
14
- # provided by the University of Leipzig.
15
- #
16
- # See the project 'Wortschatz Leipzig' for more details.
13
+ # Top level namespace wrapper for WLAPI
17
14
  module WLAPI
18
-
15
+
16
+ # This class represents an interface to the linguistic web services
17
+ # provided by the University of Leipzig.
18
+ #
19
+ # See the project 'Wortschatz Leipzig' for more details.
19
20
  class API
20
21
 
21
22
  # At the creation point clients for all services are being instantiated.
@@ -248,7 +249,7 @@ EOF
248
249
  end
249
250
 
250
251
  # This method extracts valuable data from the XML structure
251
- # of the soap respense. It returns an array with extracted xml text nodes
252
+ # of the soap response. It returns an array with extracted xml text nodes
252
253
  # and prints out the same collection in the DEBUG mode.
253
254
  def get_answer(doc, mod='')
254
255
  result = []
@@ -1,14 +1,16 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "wlapi"
3
- s.summary = "Use different web services by Wortschatz Lepzip Project."
3
+ s.summary = "Use different web services provided by the Project Wortschatz."
4
4
  s.description = File.read(File.join(File.dirname(__FILE__), 'README'))
5
+ s.rubyforge_project = "wlapi"
5
6
  s.requirements = [ 'Using this gem requires understanding of the linguistic background behind the WL project.' ]
6
- s.version = "0.0.3"
7
+ s.version = "0.0.4"
7
8
  s.author = "Andrei Beliankou"
8
9
  s.email = "a.belenkow@uni-trier.de"
9
10
  s.homepage = "http://www.uni-trier.de/index.php?id=34451"
10
11
  s.add_dependency('savon')
12
+ s.rdoc_options = ["-m", "README"]
11
13
  s.platform = Gem::Platform::RUBY
12
- s.required_ruby_version = '>=1.8'
14
+ s.required_ruby_version = '>=1.8.5'
13
15
  s.files = Dir['**/**']
14
16
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wlapi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 3
10
- version: 0.0.3
9
+ - 4
10
+ version: 0.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andrei Beliankou
@@ -33,11 +33,22 @@ dependencies:
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
35
  description: |
36
- == WLAPI is a simple API for Wortschatz Leipzig project.
36
+ = WLAPI
37
37
 
38
- See RDOC documentation for details.
38
+ * http://rubygems.org/gems/wlapi
39
+ * http://www.uni-trier.de/index.php?id=24140
39
40
 
40
- You can find some invokation examples in example/example.rb
41
+ == DESCRIPTION
42
+
43
+ WLAPI is a simple API for Wortschatz Leipzig project.
44
+
45
+ $ require 'wlapi'
46
+ $ api = WLAPI::API.new
47
+ $ api.synonyms('Haus', 15) # returns an array with sting values (UTF8 encoded)
48
+
49
+ See RDOC documentation for details on particular methods.
50
+
51
+ You can find some invocation examples in example/example.rb
41
52
 
42
53
  email: a.belenkow@uni-trier.de
43
54
  executables: []
@@ -48,44 +59,43 @@ extra_rdoc_files: []
48
59
 
49
60
  files:
50
61
  - wlapi.gemspec
51
- - doc/fr_class_index.html
52
- - doc/classes/WLAPI.html
53
- - doc/classes/WLAPI/API.src/M000007.html
54
- - doc/classes/WLAPI/API.src/M000016.html
55
- - doc/classes/WLAPI/API.src/M000006.html
56
- - doc/classes/WLAPI/API.src/M000003.html
57
- - doc/classes/WLAPI/API.src/M000011.html
58
- - doc/classes/WLAPI/API.src/M000008.html
59
- - doc/classes/WLAPI/API.src/M000017.html
60
- - doc/classes/WLAPI/API.src/M000010.html
61
- - doc/classes/WLAPI/API.src/M000012.html
62
- - doc/classes/WLAPI/API.src/M000009.html
63
- - doc/classes/WLAPI/API.src/M000013.html
64
- - doc/classes/WLAPI/API.src/M000014.html
65
- - doc/classes/WLAPI/API.src/M000005.html
66
- - doc/classes/WLAPI/API.src/M000015.html
67
- - doc/classes/WLAPI/API.src/M000004.html
68
- - doc/classes/WLAPI/API.src/M000001.html
69
- - doc/classes/WLAPI/API.src/M000002.html
70
- - doc/classes/WLAPI/API.html
71
- - doc/fr_method_index.html
62
+ - doc/images/loadingAnimation.gif
63
+ - doc/images/wrench.png
64
+ - doc/images/brick.png
65
+ - doc/images/page_white_text.png
66
+ - doc/images/ruby.png
67
+ - doc/images/plugin.png
68
+ - doc/images/bug.png
69
+ - doc/images/bullet_toggle_minus.png
70
+ - doc/images/find.png
71
+ - doc/images/zoom.png
72
+ - doc/images/bullet_toggle_plus.png
73
+ - doc/images/date.png
74
+ - doc/images/page_white_width.png
75
+ - doc/images/tag_green.png
76
+ - doc/images/wrench_orange.png
77
+ - doc/images/macFFBgHack.png
78
+ - doc/images/package.png
79
+ - doc/images/page_green.png
80
+ - doc/images/brick_link.png
81
+ - doc/images/bullet_black.png
82
+ - doc/js/darkfish.js
83
+ - doc/js/jquery.js
84
+ - doc/js/quicksearch.js
85
+ - doc/js/thickbox-compressed.js
72
86
  - doc/rdoc.css
73
87
  - doc/index.html
74
- - doc/fr_file_index.html
75
88
  - doc/README.html
76
89
  - doc/created.rid
77
- - doc/rdoc-style.css
78
90
  - doc/WLAPI.html
79
91
  - doc/INSTALL.html
80
- - doc/bin/example_rb.html
81
- - doc/files/example/example_rb.html
82
- - doc/files/lib/wlapi/wlapi_rb.html
92
+ - doc/WLAPI/API.html
93
+ - doc/example/example_rb.html
83
94
  - doc/LICENSE.html
84
95
  - doc/lib/wlapi_rb.html
85
96
  - INSTALL
86
97
  - LICENSE
87
98
  - README
88
- - example/example.rb~
89
99
  - example/example.rb
90
100
  - lib/wlapi.rb
91
101
  has_rdoc: true
@@ -93,8 +103,9 @@ homepage: http://www.uni-trier.de/index.php?id=34451
93
103
  licenses: []
94
104
 
95
105
  post_install_message:
96
- rdoc_options: []
97
-
106
+ rdoc_options:
107
+ - -m
108
+ - README
98
109
  require_paths:
99
110
  - lib
100
111
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -102,11 +113,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
102
113
  requirements:
103
114
  - - ">="
104
115
  - !ruby/object:Gem::Version
105
- hash: 31
116
+ hash: 61
106
117
  segments:
107
118
  - 1
108
119
  - 8
109
- version: "1.8"
120
+ - 5
121
+ version: 1.8.5
110
122
  required_rubygems_version: !ruby/object:Gem::Requirement
111
123
  none: false
112
124
  requirements:
@@ -118,10 +130,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
130
  version: "0"
119
131
  requirements:
120
132
  - Using this gem requires understanding of the linguistic background behind the WL project.
121
- rubyforge_project:
133
+ rubyforge_project: wlapi
122
134
  rubygems_version: 1.3.7
123
135
  signing_key:
124
136
  specification_version: 3
125
- summary: Use different web services by Wortschatz Lepzip Project.
137
+ summary: Use different web services provided by the Project Wortschatz.
126
138
  test_files: []
127
139
 
@@ -1,121 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Module: WLAPI</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Module</strong></td>
53
- <td class="class-name-in-header">WLAPI</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../files/lib/wlapi/wlapi_rb.html">
59
- lib/wlapi/wlapi.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- </table>
66
- </div>
67
- <!-- banner header -->
68
-
69
- <div id="bodyContent">
70
-
71
-
72
-
73
- <div id="contextContent">
74
-
75
- <div id="description">
76
- <p>
77
- This class represents an interface to the linguistic web services provided
78
- by the University of Leipzig.
79
- </p>
80
- <p>
81
- See the project &#8216;Wortschatz Leipzig&#8217; for more details.
82
- </p>
83
-
84
- </div>
85
-
86
-
87
- </div>
88
-
89
-
90
- </div>
91
-
92
-
93
- <!-- if includes -->
94
-
95
- <div id="section">
96
-
97
- <div id="class-list">
98
- <h3 class="section-bar">Classes and Modules</h3>
99
-
100
- Class <a href="WLAPI/API.html" class="link">WLAPI::API</a><br />
101
-
102
- </div>
103
-
104
-
105
-
106
-
107
-
108
-
109
-
110
- <!-- if method_list -->
111
-
112
-
113
- </div>
114
-
115
-
116
- <div id="validator-badges">
117
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
118
- </div>
119
-
120
- </body>
121
- </html>
@@ -1,463 +0,0 @@
1
- <?xml version="1.0" encoding="iso-8859-1"?>
2
- <!DOCTYPE html
3
- PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
-
6
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7
- <head>
8
- <title>Class: WLAPI::API</title>
9
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
11
- <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
12
- <script type="text/javascript">
13
- // <![CDATA[
14
-
15
- function popupCode( url ) {
16
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
17
- }
18
-
19
- function toggleCode( id ) {
20
- if ( document.getElementById )
21
- elem = document.getElementById( id );
22
- else if ( document.all )
23
- elem = eval( "document.all." + id );
24
- else
25
- return false;
26
-
27
- elemStyle = elem.style;
28
-
29
- if ( elemStyle.display != "block" ) {
30
- elemStyle.display = "block"
31
- } else {
32
- elemStyle.display = "none"
33
- }
34
-
35
- return true;
36
- }
37
-
38
- // Make codeblocks hidden by default
39
- document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
40
-
41
- // ]]>
42
- </script>
43
-
44
- </head>
45
- <body>
46
-
47
-
48
-
49
- <div id="classHeader">
50
- <table class="header-table">
51
- <tr class="top-aligned-row">
52
- <td><strong>Class</strong></td>
53
- <td class="class-name-in-header">WLAPI::API</td>
54
- </tr>
55
- <tr class="top-aligned-row">
56
- <td><strong>In:</strong></td>
57
- <td>
58
- <a href="../../files/lib/wlapi/wlapi_rb.html">
59
- lib/wlapi/wlapi.rb
60
- </a>
61
- <br />
62
- </td>
63
- </tr>
64
-
65
- <tr class="top-aligned-row">
66
- <td><strong>Parent:</strong></td>
67
- <td>
68
- Object
69
- </td>
70
- </tr>
71
- </table>
72
- </div>
73
- <!-- banner header -->
74
-
75
- <div id="bodyContent">
76
-
77
-
78
-
79
- <div id="contextContent">
80
-
81
-
82
-
83
- </div>
84
-
85
- <div id="method-list">
86
- <h3 class="section-bar">Methods</h3>
87
-
88
- <div class="name-list">
89
- <a href="#M000003">baseform</a>&nbsp;&nbsp;
90
- <a href="#M000015">cooccurrences</a>&nbsp;&nbsp;
91
- <a href="#M000016">cooccurrences_all</a>&nbsp;&nbsp;
92
- <a href="#M000012">experimental_synonyms</a>&nbsp;&nbsp;
93
- <a href="#M000002">frequencies</a>&nbsp;&nbsp;
94
- <a href="#M000017">kookurrenzschnitt</a>&nbsp;&nbsp;
95
- <a href="#M000014">left_collocation_finder</a>&nbsp;&nbsp;
96
- <a href="#M000009">left_neighbours</a>&nbsp;&nbsp;
97
- <a href="#M000001">new</a>&nbsp;&nbsp;
98
- <a href="#M000013">right_collocation_finder</a>&nbsp;&nbsp;
99
- <a href="#M000010">right_neighbours</a>&nbsp;&nbsp;
100
- <a href="#M000004">sachgebiet</a>&nbsp;&nbsp;
101
- <a href="#M000008">sentences</a>&nbsp;&nbsp;
102
- <a href="#M000011">similarity</a>&nbsp;&nbsp;
103
- <a href="#M000007">synonyms</a>&nbsp;&nbsp;
104
- <a href="#M000006">thesaurus</a>&nbsp;&nbsp;
105
- <a href="#M000005">wordforms</a>&nbsp;&nbsp;
106
- </div>
107
- </div>
108
-
109
- </div>
110
-
111
-
112
- <!-- if includes -->
113
-
114
- <div id="section">
115
-
116
-
117
-
118
-
119
-
120
-
121
-
122
-
123
- <!-- if method_list -->
124
- <div id="methods">
125
- <h3 class="section-bar">Public Class methods</h3>
126
-
127
- <div id="method-M000001" class="method-detail">
128
- <a name="M000001"></a>
129
-
130
- <div class="method-heading">
131
- <a href="API.src/M000001.html" target="Code" class="method-signature"
132
- onclick="popupCode('API.src/M000001.html');return false;">
133
- <span class="method-name">new</span><span class="method-args">(login = 'anonymous', pass = 'anonymous')</span>
134
- </a>
135
- </div>
136
-
137
- <div class="method-description">
138
- <p>
139
- At the creation point clients for all services are being instantiated. You
140
- can also set the login and the password (it defaults to
141
- &#8216;anonymous&#8217;).
142
- </p>
143
- </div>
144
- </div>
145
-
146
- <h3 class="section-bar">Public Instance methods</h3>
147
-
148
- <div id="method-M000003" class="method-detail">
149
- <a name="M000003"></a>
150
-
151
- <div class="method-heading">
152
- <a href="API.src/M000003.html" target="Code" class="method-signature"
153
- onclick="popupCode('API.src/M000003.html');return false;">
154
- <span class="method-name">baseform</span><span class="method-args">()</span>
155
- </a>
156
- </div>
157
-
158
- <div class="method-description">
159
- <p>
160
- This method gets the <a href="API.html#M000003">baseform</a> (whatever it
161
- is :) not lemma). Returns the lemmatized (base) form of the input word.
162
- </p>
163
- </div>
164
- </div>
165
-
166
- <div id="method-M000015" class="method-detail">
167
- <a name="M000015"></a>
168
-
169
- <div class="method-heading">
170
- <a href="API.src/M000015.html" target="Code" class="method-signature"
171
- onclick="popupCode('API.src/M000015.html');return false;">
172
- <span class="method-name">cooccurrences</span><span class="method-args">()</span>
173
- </a>
174
- </div>
175
-
176
- <div class="method-description">
177
- <p>
178
- Returns statistically significant co-occurrences of the input word.
179
- </p>
180
- </div>
181
- </div>
182
-
183
- <div id="method-M000016" class="method-detail">
184
- <a name="M000016"></a>
185
-
186
- <div class="method-heading">
187
- <a href="API.src/M000016.html" target="Code" class="method-signature"
188
- onclick="popupCode('API.src/M000016.html');return false;">
189
- <span class="method-name">cooccurrences_all</span><span class="method-args">()</span>
190
- </a>
191
- </div>
192
-
193
- <div class="method-description">
194
- <p>
195
- Returns statistically significant co-occurrences of the input word.
196
- However, it searches in the unrestricted version of the co-occurrences
197
- table as in the Cooccurrences services, which means significantly longer
198
- wait times.
199
- </p>
200
- </div>
201
- </div>
202
-
203
- <div id="method-M000012" class="method-detail">
204
- <a name="M000012"></a>
205
-
206
- <div class="method-heading">
207
- <a href="API.src/M000012.html" target="Code" class="method-signature"
208
- onclick="popupCode('API.src/M000012.html');return false;">
209
- <span class="method-name">experimental_synonyms</span><span class="method-args">()</span>
210
- </a>
211
- </div>
212
-
213
- <div class="method-description">
214
- <p>
215
- This service delivers an experimental <a
216
- href="API.html#M000007">synonyms</a> request for internal tests. &#8212;
217
- don&#8216;t know, if we have to include this service&#8230;
218
- </p>
219
- </div>
220
- </div>
221
-
222
- <div id="method-M000002" class="method-detail">
223
- <a name="M000002"></a>
224
-
225
- <div class="method-heading">
226
- <a href="API.src/M000002.html" target="Code" class="method-signature"
227
- onclick="popupCode('API.src/M000002.html');return false;">
228
- <span class="method-name">frequencies</span><span class="method-args">()</span>
229
- </a>
230
- </div>
231
-
232
- <div class="method-description">
233
- <p>
234
- Returns the frequency and frequency class of the input word. Frequency
235
- class is computed in relation to the most frequent word in the corpus. The
236
- higher the class, the rarer the word.
237
- </p>
238
- </div>
239
- </div>
240
-
241
- <div id="method-M000017" class="method-detail">
242
- <a name="M000017"></a>
243
-
244
- <div class="method-heading">
245
- <a href="API.src/M000017.html" target="Code" class="method-signature"
246
- onclick="popupCode('API.src/M000017.html');return false;">
247
- <span class="method-name">kookurrenzschnitt</span><span class="method-args">()</span>
248
- </a>
249
- </div>
250
-
251
- <div class="method-description">
252
- <p>
253
- Returns the intersection of the co-occurrences of the two given words. The
254
- result set is ordered according to the sum of the significances in
255
- descending order. Note that due to the join involved, this make take some
256
- time.
257
- </p>
258
- </div>
259
- </div>
260
-
261
- <div id="method-M000014" class="method-detail">
262
- <a name="M000014"></a>
263
-
264
- <div class="method-heading">
265
- <a href="API.src/M000014.html" target="Code" class="method-signature"
266
- onclick="popupCode('API.src/M000014.html');return false;">
267
- <span class="method-name">left_collocation_finder</span><span class="method-args">()</span>
268
- </a>
269
- </div>
270
-
271
- <div class="method-description">
272
- <p>
273
- Attempts to find linguistic collocations that occur to the left of the
274
- given input word. The parameter Wortart accepts four values A,V,N,S which
275
- stand for adjective, verb, noun and stopword, respectively. The parameter
276
- restricts the type of words found.
277
- </p>
278
- </div>
279
- </div>
280
-
281
- <div id="method-M000009" class="method-detail">
282
- <a name="M000009"></a>
283
-
284
- <div class="method-heading">
285
- <a href="API.src/M000009.html" target="Code" class="method-signature"
286
- onclick="popupCode('API.src/M000009.html');return false;">
287
- <span class="method-name">left_neighbours</span><span class="method-args">(word, limit)</span>
288
- </a>
289
- </div>
290
-
291
- <div class="method-description">
292
- <p>
293
- For a given input word, returns statistically significant left neighbours
294
- (words co-occurring immediately to the left of the input word). &#8212; ok,
295
- but results should be filtered
296
- </p>
297
- </div>
298
- </div>
299
-
300
- <div id="method-M000013" class="method-detail">
301
- <a name="M000013"></a>
302
-
303
- <div class="method-heading">
304
- <a href="API.src/M000013.html" target="Code" class="method-signature"
305
- onclick="popupCode('API.src/M000013.html');return false;">
306
- <span class="method-name">right_collocation_finder</span><span class="method-args">()</span>
307
- </a>
308
- </div>
309
-
310
- <div class="method-description">
311
- <p>
312
- Attempts to find linguistic collocations that occur to the right of the
313
- given input word. The parameter Wortart accepts four values A,V,N,S which
314
- stand for adjective, verb, noun and stopword, respectively. The parameter
315
- restricts the type of words found.
316
- </p>
317
- </div>
318
- </div>
319
-
320
- <div id="method-M000010" class="method-detail">
321
- <a name="M000010"></a>
322
-
323
- <div class="method-heading">
324
- <a href="API.src/M000010.html" target="Code" class="method-signature"
325
- onclick="popupCode('API.src/M000010.html');return false;">
326
- <span class="method-name">right_neighbours</span><span class="method-args">(word, limit)</span>
327
- </a>
328
- </div>
329
-
330
- <div class="method-description">
331
- <p>
332
- For a given input word, returns statistically significant right neighbours
333
- (words co-occurring immediately to the right of the input word). &#8212;
334
- ok, but results should be filtered
335
- </p>
336
- </div>
337
- </div>
338
-
339
- <div id="method-M000004" class="method-detail">
340
- <a name="M000004"></a>
341
-
342
- <div class="method-heading">
343
- <a href="API.src/M000004.html" target="Code" class="method-signature"
344
- onclick="popupCode('API.src/M000004.html');return false;">
345
- <span class="method-name">sachgebiet</span><span class="method-args">()</span>
346
- </a>
347
- </div>
348
-
349
- <div class="method-description">
350
- <p>
351
- Returns categories for a given input word. &#8212; Is it a good name? all
352
- names are in English, but here&#8230;
353
- </p>
354
- </div>
355
- </div>
356
-
357
- <div id="method-M000008" class="method-detail">
358
- <a name="M000008"></a>
359
-
360
- <div class="method-heading">
361
- <a href="API.src/M000008.html" target="Code" class="method-signature"
362
- onclick="popupCode('API.src/M000008.html');return false;">
363
- <span class="method-name">sentences</span><span class="method-args">(word, limit)</span>
364
- </a>
365
- </div>
366
-
367
- <div class="method-description">
368
- <p>
369
- ok, but results should be filtered Returns sample <a
370
- href="API.html#M000008">sentences</a> containing the input word.
371
- </p>
372
- </div>
373
- </div>
374
-
375
- <div id="method-M000011" class="method-detail">
376
- <a name="M000011"></a>
377
-
378
- <div class="method-heading">
379
- <a href="API.src/M000011.html" target="Code" class="method-signature"
380
- onclick="popupCode('API.src/M000011.html');return false;">
381
- <span class="method-name">similarity</span><span class="method-args">()</span>
382
- </a>
383
- </div>
384
-
385
- <div class="method-description">
386
- <p>
387
- Returns automatically computed contextually similar words of the input
388
- word. Such similar words may be antonyms, hyperonyms, <a
389
- href="API.html#M000007">synonyms</a>, cohyponyms or other. Note that due to
390
- the huge amount of data any query to this services may take a long time.
391
- </p>
392
- </div>
393
- </div>
394
-
395
- <div id="method-M000007" class="method-detail">
396
- <a name="M000007"></a>
397
-
398
- <div class="method-heading">
399
- <a href="API.src/M000007.html" target="Code" class="method-signature"
400
- onclick="popupCode('API.src/M000007.html');return false;">
401
- <span class="method-name">synonyms</span><span class="method-args">(word, limit = 10)</span>
402
- </a>
403
- </div>
404
-
405
- <div class="method-description">
406
- <p>
407
- This method searches for <a href="API.html#M000007">synonyms</a>. Returns
408
- <a href="API.html#M000007">synonyms</a> of the input word. In other words,
409
- this is a <a href="API.html#M000006">thesaurus</a>.
410
- </p>
411
- </div>
412
- </div>
413
-
414
- <div id="method-M000006" class="method-detail">
415
- <a name="M000006"></a>
416
-
417
- <div class="method-heading">
418
- <a href="API.src/M000006.html" target="Code" class="method-signature"
419
- onclick="popupCode('API.src/M000006.html');return false;">
420
- <span class="method-name">thesaurus</span><span class="method-args">(word, limit = 10)</span>
421
- </a>
422
- </div>
423
-
424
- <div class="method-description">
425
- <p>
426
- As the Synonyms service returns <a href="API.html#M000007">synonyms</a> of
427
- the given input word. However, this first builds a lemma of the input word
428
- and thus returns more <a href="API.html#M000007">synonyms</a>.
429
- </p>
430
- </div>
431
- </div>
432
-
433
- <div id="method-M000005" class="method-detail">
434
- <a name="M000005"></a>
435
-
436
- <div class="method-heading">
437
- <a href="API.src/M000005.html" target="Code" class="method-signature"
438
- onclick="popupCode('API.src/M000005.html');return false;">
439
- <span class="method-name">wordforms</span><span class="method-args">(word, limit)</span>
440
- </a>
441
- </div>
442
-
443
- <div class="method-description">
444
- <p>
445
- Returns all other word forms of the same lemma for a given word form .
446
- &#8212; malformed soap, investigate!!! doesn&#8216;t function
447
- </p>
448
- </div>
449
- </div>
450
-
451
-
452
- </div>
453
-
454
-
455
- </div>
456
-
457
-
458
- <div id="validator-badges">
459
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
460
- </div>
461
-
462
- </body>
463
- </html>