-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathINSTALL
62 lines (38 loc) · 1.58 KB
/
INSTALL
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
Ruby-WordNet Installation Instructions
$Id$
These instructions are decidedly Unix-biased. I apologize to those of you trying
to run this on some other platform. Suggestions or patches for other-platform
compatibility are welcome at <[email protected]>.
Prerequisites
-------------
Versions listed are the ones I've tested with. Earlier versions may work, but
your mileage may vary.
* Ruby (>= 1.8.6)
Home page: http://www.ruby-lang.org/
Download: ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.6.tar.gz
* WordNet (>= 3.0)
Home page: http://www.cogsci.princeton.edu/~wn/
* bdb (>=0.2.5)
RAA: http://www.ruby-lang.org/en/raa-list.rhtml?name=bdb
Download: ftp://moulon.inra.fr/pub/ruby/
Installation
------------
These instructions assume that you've already installed the prerequisite
packages, unpacked the distribution somewhere, and have changed your working
directory to the resultant subdirectory.
You must first convert the WordNet lexicon into the database format used by
Ruby-WordNet. The <datadir> argument is the full path to the 'dict' directory
under the WordNet installation:
$ ruby convertdb.rb <datadir>
This can take some time, and will consume about ~40 Mb of disk space when the
process is finished. While it is building, it can consume a bit more.
To run unit tests:
$ ruby test.rb
To install:
$ ruby install.rb
Documentation
-------------
If you have Rdoc (http://rdoc.sourceforge.net/) installed, you can create HTML
documentation thusly:
$ ruby docs/makedocs.rb
This will leave HTML documentation (by default) in 'docs/html'.