wlapi 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (42) hide show
  1. data/INSTALL +0 -0
  2. data/LICENSE +19 -0
  3. data/README +5 -0
  4. data/doc/INSTALL.html +88 -0
  5. data/doc/LICENSE.html +113 -0
  6. data/doc/README.html +92 -0
  7. data/doc/WLAPI.html +1006 -0
  8. data/doc/bin/example_rb.html +54 -0
  9. data/doc/classes/WLAPI/API.html +463 -0
  10. data/doc/classes/WLAPI/API.src/M000001.html +51 -0
  11. data/doc/classes/WLAPI/API.src/M000002.html +18 -0
  12. data/doc/classes/WLAPI/API.src/M000003.html +18 -0
  13. data/doc/classes/WLAPI/API.src/M000004.html +18 -0
  14. data/doc/classes/WLAPI/API.src/M000005.html +20 -0
  15. data/doc/classes/WLAPI/API.src/M000006.html +19 -0
  16. data/doc/classes/WLAPI/API.src/M000007.html +20 -0
  17. data/doc/classes/WLAPI/API.src/M000008.html +19 -0
  18. data/doc/classes/WLAPI/API.src/M000009.html +19 -0
  19. data/doc/classes/WLAPI/API.src/M000010.html +19 -0
  20. data/doc/classes/WLAPI/API.src/M000011.html +18 -0
  21. data/doc/classes/WLAPI/API.src/M000012.html +18 -0
  22. data/doc/classes/WLAPI/API.src/M000013.html +18 -0
  23. data/doc/classes/WLAPI/API.src/M000014.html +18 -0
  24. data/doc/classes/WLAPI/API.src/M000015.html +18 -0
  25. data/doc/classes/WLAPI/API.src/M000016.html +18 -0
  26. data/doc/classes/WLAPI/API.src/M000017.html +18 -0
  27. data/doc/classes/WLAPI.html +121 -0
  28. data/doc/created.rid +1 -0
  29. data/doc/files/example/example_rb.html +119 -0
  30. data/doc/files/lib/wlapi/wlapi_rb.html +122 -0
  31. data/doc/fr_class_index.html +28 -0
  32. data/doc/fr_file_index.html +28 -0
  33. data/doc/fr_method_index.html +43 -0
  34. data/doc/index.html +24 -0
  35. data/doc/lib/wlapi_rb.html +59 -0
  36. data/doc/rdoc-style.css +208 -0
  37. data/doc/rdoc.css +706 -0
  38. data/example/example.rb +15 -0
  39. data/example/example.rb~ +2 -0
  40. data/lib/wlapi.rb +263 -0
  41. data/wlapi.gemspec +14 -0
  42. metadata +127 -0
@@ -0,0 +1,54 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: example.rb [Ruby based API for Wortschatz Leipzig web services]</title>
10
+
11
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">2010-10-31 19:09:25 +0100</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>wlapi</li>
35
+
36
+ </ul>
37
+ </dd>
38
+
39
+
40
+
41
+ </dl>
42
+ </div>
43
+
44
+ <div id="documentation">
45
+
46
+ <div class="description">
47
+ <h2>Description</h2>
48
+
49
+ </div>
50
+
51
+ </div>
52
+ </body>
53
+ </html>
54
+
@@ -0,0 +1,463 @@
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>
@@ -0,0 +1,51 @@
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>
7
+ <head>
8
+ <title>new (WLAPI::API)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/wlapi/wlapi.rb, line 23</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">login</span> = <span class="ruby-value str">'anonymous'</span>, <span class="ruby-identifier">pass</span> = <span class="ruby-value str">'anonymous'</span>)
15
+ <span class="ruby-comment cmt"># This hash contains the URLs to the single services.</span>
16
+ <span class="ruby-ivar">@services</span> = {
17
+ <span class="ruby-value str">'Thesaurus'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/Thesaurus'</span>,
18
+ <span class="ruby-value str">'Baseform'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/Baseform'</span>,
19
+ <span class="ruby-value str">'Similarity'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/Similarity'</span>,
20
+ <span class="ruby-value str">'Synonyms'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/Synonyms'</span>,
21
+ <span class="ruby-value str">'Sachgebiet'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/Sachgebiet'</span>,
22
+ <span class="ruby-value str">'Frequencies'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/Frequencies'</span>,
23
+ <span class="ruby-value str">'Kookurrenzschnitt'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/Kookkurrenzschnitt'</span>,
24
+ <span class="ruby-value str">'ExperimentalSynonyms'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/ExperimentalSynonyms'</span>,
25
+ <span class="ruby-value str">'RightCollocationFinder'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/RightCollocationFinder'</span>,
26
+ <span class="ruby-value str">'LeftCollocationFinder'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/LeftCollocationFinder'</span>,
27
+ <span class="ruby-value str">'Wordforms'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/Wordforms'</span>,
28
+ <span class="ruby-value str">'CooccurrencesAll'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/CooccurrencesAll'</span>,
29
+ <span class="ruby-value str">'LeftNeighbours'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/LeftNeighbours'</span>,
30
+ <span class="ruby-value str">'RightNeighbours'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/RightNeighbours'</span>,
31
+ <span class="ruby-value str">'Sentences'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/Sentences'</span>,
32
+ <span class="ruby-value str">'Cooccurrences'</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'http://wortschatz.uni-leipzig.de/axis/services/Cooccurrences'</span>
33
+ <span class="ruby-comment cmt"># no MARSService and Kreuzwortrraetsel</span>
34
+ }
35
+
36
+ <span class="ruby-comment cmt"># cl short for client.</span>
37
+ <span class="ruby-comment cmt"># Dynamically create all the clients and set access credentials.</span>
38
+ <span class="ruby-comment cmt"># It can be a very bad idea to instantiate all the clients at once,</span>
39
+ <span class="ruby-comment cmt"># we should investigate the typical user behaviour.</span>
40
+ <span class="ruby-comment cmt"># If only one service is used in the separate session =&gt; rewrite the class!</span>
41
+ <span class="ruby-ivar">@services</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">key</span>, <span class="ruby-identifier">val</span><span class="ruby-operator">|</span>
42
+ <span class="ruby-identifier">cl_name</span> = <span class="ruby-value str">'@cl_'</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">key</span>
43
+ <span class="ruby-identifier">eval</span>(<span class="ruby-node">&quot;#{cl_name} = Savon::Client.new(val)&quot;</span>)
44
+ <span class="ruby-identifier">eval</span>(<span class="ruby-node">&quot;#{cl_name}.request.basic_auth(login, pass)&quot;</span>)
45
+ <span class="ruby-keyword kw">end</span>
46
+
47
+ <span class="ruby-comment cmt"># Savon creates very verbose logs, switching off.</span>
48
+ <span class="ruby-constant">Savon</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span>.<span class="ruby-identifier">log</span> = <span class="ruby-keyword kw">false</span> <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">$DEBUG</span>
49
+ <span class="ruby-keyword kw">end</span></pre>
50
+ </body>
51
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>frequencies (WLAPI::API)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/wlapi/wlapi.rb, line 74</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">frequencies</span>
15
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not implemented yet!'</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>baseform (WLAPI::API)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/wlapi/wlapi.rb, line 80</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">baseform</span>
15
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not implemented yet!'</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,18 @@
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>
7
+ <head>
8
+ <title>sachgebiet (WLAPI::API)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/wlapi/wlapi.rb, line 87</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">sachgebiet</span>
15
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not implemented yet!'</span>
16
+ <span class="ruby-keyword kw">end</span></pre>
17
+ </body>
18
+ </html>
@@ -0,0 +1,20 @@
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>
7
+ <head>
8
+ <title>wordforms (WLAPI::API)</title>
9
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
10
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
11
+ </head>
12
+ <body class="standalone-code">
13
+ <pre><span class="ruby-comment cmt"># File lib/wlapi/wlapi.rb, line 98</span>
14
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">wordforms</span>(<span class="ruby-identifier">word</span>, <span class="ruby-identifier">limit</span>)
15
+ <span class="ruby-identifier">raise</span> <span class="ruby-value str">'Not implemented yet!'</span> <span class="ruby-comment cmt"># remove later</span>
16
+ <span class="ruby-identifier">answer</span> = <span class="ruby-identifier">query</span>(<span class="ruby-identifier">word</span>, <span class="ruby-identifier">limit</span>, <span class="ruby-ivar">@cl_Wordforms</span>, <span class="ruby-ivar">@services</span>[<span class="ruby-value str">'Wordforms'</span>])
17
+ <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">get_answer</span>(<span class="ruby-identifier">answer</span>)
18
+ <span class="ruby-keyword kw">end</span></pre>
19
+ </body>
20
+ </html>