/
README.txt
71 lines (40 loc) · 1.35 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
= poliqarpr-corpus
* http://github.com/apohllo/poliqarpr-corpus
* http://korpus.pl/index.php?page=download
== DESCRIPTION:
Default corpus for poliqarpr (Ruby client for Poliqarp server).
== FEATURES/PROBLEMS:
* Default corpus allows to test the poliqarpr Ruby client without need to
manually download or create the corpus.
== SYNOPSIS:
Poliqarpr is Ruby client for Poliqarp corpus server. The default corpus
for Poliqarpr is used in examples and testing.
== REQUIREMENTS:
* poliqarpr (sudo gem install poliqarpr)
* Poliqarp server (only C implementation http://poliqarp.sourceforge.net/)
== INSTALL:
You need RubyGems v. 1.2
* gem -v
* 1.2.0 #=> ok
You need the gemcutter.org repository to be added to your sources list:
* gem sources -a http://gemcutter.org
Then you can type:
* sudo gem install poliqarpr-corpus
== BASIC USAGE:
Require the gem:
require 'poliaqarpr'
Create the server client and open the default corpus
client = Poliqarp::Client.new
client.open_corpus :default
Query the corpus for given segment
result = client.find("kot")
result[0].to_s
Remember to close the client on exit
client.close
== LICENSE:
The sample corpus ("frek" form
http://korpus.pl/index.php?page=download) is distributed under
the GNU GPL license v 2.0
http://www.gnu.org/licenses/old-licenses/gpl-2.0.html.
== FEEDBACK
* mailto:apohllo@o2.pl