rwordnet 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +2 -0
- data/README.markdown +51 -0
- data/WordNet-3.0/AUTHORS +6 -0
- data/WordNet-3.0/COPYING +31 -0
- data/WordNet-3.0/LICENSE +31 -0
- data/WordNet-3.0/README +101 -0
- data/WordNet-3.0/dict/data.adj +18185 -0
- data/WordNet-3.0/dict/data.adv +3650 -0
- data/WordNet-3.0/dict/data.noun +82144 -0
- data/WordNet-3.0/dict/data.verb +13796 -0
- data/WordNet-3.0/dict/index.adj +21508 -0
- data/WordNet-3.0/dict/index.adv +4510 -0
- data/WordNet-3.0/dict/index.noun +117827 -0
- data/WordNet-3.0/dict/index.verb +11558 -0
- data/examples/dictionary.rb +21 -0
- data/examples/full_hypernym.rb +12 -0
- data/lib/wordnet.rb +7 -0
- data/lib/wordnet/index.rb +65 -0
- data/lib/wordnet/lemma.rb +38 -0
- data/lib/wordnet/pointer.rb +15 -0
- data/lib/wordnet/pointers.rb +37 -0
- data/lib/wordnet/pos.rb +3 -0
- data/lib/wordnet/synset.rb +90 -0
- data/lib/wordnet/wordnetdb.rb +54 -0
- data/test/test_helper.rb +17 -0
- data/test/unit/index_test.rb +21 -0
- data/test/unit/synset_test.rb +44 -0
- data/test/unit/wordnetdb_test.rb +16 -0
- metadata +87 -0
@@ -0,0 +1,16 @@
|
|
1
|
+
require File.dirname(__FILE__) + "/../test_helper.rb"
|
2
|
+
|
3
|
+
class TestWordNetDB < Test::Unit::TestCase
|
4
|
+
include WordNet
|
5
|
+
|
6
|
+
test 'set and read path' do
|
7
|
+
WordNetDB.path = WordNetPath
|
8
|
+
assert_equal WordNetPath,WordNetDB.path
|
9
|
+
end
|
10
|
+
|
11
|
+
test 'find a word' do
|
12
|
+
WordNetDB.path = WordNetPath
|
13
|
+
lemmas = WordNetDB.find("fruit")
|
14
|
+
assert_equal 2,lemmas.size
|
15
|
+
end
|
16
|
+
end
|
metadata
ADDED
@@ -0,0 +1,87 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rwordnet
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Trevor Fountain
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2009-10-18 00:00:00 +01:00
|
13
|
+
default_executable:
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: A pure Ruby interface to the WordNet database
|
17
|
+
email: doches@gmail.com
|
18
|
+
executables: []
|
19
|
+
|
20
|
+
extensions: []
|
21
|
+
|
22
|
+
extra_rdoc_files:
|
23
|
+
- README.markdown
|
24
|
+
files:
|
25
|
+
- History.txt
|
26
|
+
- README.markdown
|
27
|
+
- WordNet-3.0/AUTHORS
|
28
|
+
- WordNet-3.0/COPYING
|
29
|
+
- WordNet-3.0/LICENSE
|
30
|
+
- WordNet-3.0/README
|
31
|
+
- WordNet-3.0/dict/data.adj
|
32
|
+
- WordNet-3.0/dict/data.adv
|
33
|
+
- WordNet-3.0/dict/data.noun
|
34
|
+
- WordNet-3.0/dict/data.verb
|
35
|
+
- WordNet-3.0/dict/index.adj
|
36
|
+
- WordNet-3.0/dict/index.adv
|
37
|
+
- WordNet-3.0/dict/index.noun
|
38
|
+
- WordNet-3.0/dict/index.verb
|
39
|
+
- examples/dictionary.rb
|
40
|
+
- examples/full_hypernym.rb
|
41
|
+
- lib/wordnet.rb
|
42
|
+
- lib/wordnet/index.rb
|
43
|
+
- lib/wordnet/lemma.rb
|
44
|
+
- lib/wordnet/pointer.rb
|
45
|
+
- lib/wordnet/pointers.rb
|
46
|
+
- lib/wordnet/pos.rb
|
47
|
+
- lib/wordnet/synset.rb
|
48
|
+
- lib/wordnet/wordnetdb.rb
|
49
|
+
- test/test_helper.rb
|
50
|
+
- test/unit/index_test.rb
|
51
|
+
- test/unit/synset_test.rb
|
52
|
+
- test/unit/wordnetdb_test.rb
|
53
|
+
has_rdoc: true
|
54
|
+
homepage: http://github.com/doches/rwordnet
|
55
|
+
licenses: []
|
56
|
+
|
57
|
+
post_install_message:
|
58
|
+
rdoc_options:
|
59
|
+
- --charset=UTF-8
|
60
|
+
require_paths:
|
61
|
+
- lib
|
62
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
63
|
+
requirements:
|
64
|
+
- - ">="
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: "0"
|
67
|
+
version:
|
68
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - ">="
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: "0"
|
73
|
+
version:
|
74
|
+
requirements: []
|
75
|
+
|
76
|
+
rubyforge_project:
|
77
|
+
rubygems_version: 1.3.5
|
78
|
+
signing_key:
|
79
|
+
specification_version: 3
|
80
|
+
summary: A pure Ruby interface to the WordNet database
|
81
|
+
test_files:
|
82
|
+
- test/test_helper.rb
|
83
|
+
- test/unit/index_test.rb
|
84
|
+
- test/unit/synset_test.rb
|
85
|
+
- test/unit/wordnetdb_test.rb
|
86
|
+
- examples/dictionary.rb
|
87
|
+
- examples/full_hypernym.rb
|