linkparser 1.1.4 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.simplecov +9 -0
- data/ChangeLog +40 -3
- data/History.md +55 -0
- data/Manifest.txt +6 -4
- data/{README.rdoc → README.md} +56 -53
- data/Rakefile +53 -21
- data/ext/dictionary.c +60 -65
- data/ext/extconf.rb +6 -3
- data/ext/linkage.c +117 -368
- data/ext/linkparser.c +56 -27
- data/ext/linkparser.h +14 -16
- data/ext/parseoptions.c +209 -680
- data/ext/sentence.c +62 -149
- data/lib/linkparser.rb +14 -7
- data/lib/linkparser/dictionary.rb +13 -0
- data/lib/linkparser/linkage.rb +277 -166
- data/lib/linkparser/mixins.rb +2 -2
- data/lib/linkparser/parseoptions.rb +58 -0
- data/lib/linkparser/sentence.rb +21 -34
- data/spec/bugfixes_spec.rb +23 -36
- data/spec/helpers.rb +35 -0
- data/spec/linkparser/dictionary_spec.rb +29 -48
- data/spec/linkparser/linkage_spec.rb +199 -268
- data/spec/linkparser/mixins_spec.rb +9 -24
- data/spec/linkparser/parseoptions_spec.rb +45 -59
- data/spec/linkparser/sentence_spec.rb +36 -56
- data/spec/linkparser_spec.rb +6 -25
- metadata +97 -85
- metadata.gz.sig +0 -0
- data/History.rdoc +0 -41
- data/examples/basic-api.rb +0 -65
- data/examples/readme-example.rb +0 -14
@@ -1,22 +1,7 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# Specification for the LinkParser::Sentence class
|
4
|
-
# $Id: mixins_spec.rb,v 54e4e2ff8899 2010/11/25 00:50:55 ged $
|
5
|
-
#
|
6
|
-
# See the LICENSE file in the distribution for information about copyright and licensing.
|
7
|
-
#
|
1
|
+
# -*- ruby -*-
|
2
|
+
#encoding: utf-8
|
8
3
|
|
9
|
-
|
10
|
-
require 'pathname'
|
11
|
-
basedir = Pathname.new( __FILE__ ).dirname.parent.parent
|
12
|
-
|
13
|
-
libdir = basedir + 'lib'
|
14
|
-
extdir = basedir + 'ext'
|
15
|
-
|
16
|
-
$LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
|
17
|
-
$LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
|
18
|
-
$LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s )
|
19
|
-
}
|
4
|
+
require_relative '../helpers'
|
20
5
|
|
21
6
|
require 'rspec'
|
22
7
|
require 'linkparser/mixins'
|
@@ -46,18 +31,18 @@ describe LinkParser, "mixins" do
|
|
46
31
|
end
|
47
32
|
|
48
33
|
it "provides a function for marking a method as deprecated" do
|
49
|
-
@object.
|
50
|
-
@object.no_args.
|
34
|
+
expect( @object ).to receive( :warn ).with( /deprecated/i )
|
35
|
+
expect( @object.no_args ).to eq( :no_args_result )
|
51
36
|
end
|
52
37
|
|
53
38
|
it "provides a function for marking a method that takes arguments as deprecated" do
|
54
|
-
@object.
|
55
|
-
@object.two_args( :arg_one, :arg_two ).
|
39
|
+
expect( @object ).to receive( :warn ).with( /deprecated/i )
|
40
|
+
expect( @object.two_args( :arg_one, :arg_two ) ).to eq( [ :arg_one, :arg_two ] )
|
56
41
|
end
|
57
42
|
|
58
43
|
it "provides a function for marking a method with splatted arguments as deprecated" do
|
59
|
-
@object.
|
60
|
-
@object.splat_args( :arg_one, :arg_two ).
|
44
|
+
expect( @object ).to receive( :warn ).with( /deprecated/i )
|
45
|
+
expect( @object.splat_args( :arg_one, :arg_two ) ).to eq( [ :arg_one, :arg_two ] )
|
61
46
|
end
|
62
47
|
|
63
48
|
|
@@ -1,88 +1,74 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# Specification for the LinkParser::ParseOptions class
|
4
|
-
# $Id: parseoptions_spec.rb,v 54e4e2ff8899 2010/11/25 00:50:55 ged $
|
5
|
-
#
|
6
|
-
# See the LICENSE file in the distribution for information about copyright and licensing.
|
7
|
-
#
|
8
|
-
|
9
|
-
BEGIN {
|
10
|
-
require 'pathname'
|
11
|
-
basedir = Pathname.new( __FILE__ ).dirname.parent.parent
|
12
|
-
|
13
|
-
libdir = basedir + 'lib'
|
14
|
-
extdir = basedir + 'ext'
|
15
|
-
|
16
|
-
$LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
|
17
|
-
$LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
|
18
|
-
$LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s )
|
19
|
-
}
|
1
|
+
# -*- ruby -*-
|
2
|
+
#encoding: utf-8
|
20
3
|
|
21
|
-
|
4
|
+
require_relative '../helpers'
|
22
5
|
|
6
|
+
require 'rspec'
|
23
7
|
require 'linkparser'
|
24
8
|
|
25
9
|
|
26
10
|
describe LinkParser::ParseOptions do
|
27
11
|
|
28
|
-
|
29
|
-
$DEBUG = true if ENV['DEBUG']
|
30
|
-
end
|
31
|
-
|
32
|
-
before( :each ) do
|
33
|
-
@opts = LinkParser::ParseOptions.new
|
34
|
-
end
|
12
|
+
let( :opts ) { described_class.new }
|
35
13
|
|
36
14
|
|
37
15
|
it "starts out with documented defaults" do
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
@opts.batch_mode?.should == false
|
50
|
-
@opts.panic_mode?.should == false
|
51
|
-
@opts.screen_width.should == 79
|
52
|
-
@opts.display_on?.should == true
|
53
|
-
@opts.display_postscript? == false
|
54
|
-
@opts.display_bad?.should == false
|
55
|
-
@opts.display_links?.should == false
|
56
|
-
@opts.all_short_connectors?.should == false
|
57
|
-
end
|
58
|
-
|
59
|
-
it "supports all the members mentioned in the documentation" do
|
60
|
-
pending "some of them aren't implemented in the link-grammar library" do
|
61
|
-
@opts.display_short?.should == true # Not in the API
|
62
|
-
end
|
16
|
+
expect( opts.verbosity ).to eq( 1 ) # Docs say this is 0
|
17
|
+
expect( opts.linkage_limit ).to eq( 100 ) # Docs say this is 10000
|
18
|
+
expect( opts.disjunct_cost ).to eq( 2 )
|
19
|
+
expect( opts.min_null_count ).to eq( 0 )
|
20
|
+
expect( opts.max_null_count ).to eq( 0 )
|
21
|
+
expect( opts.islands_ok? ).to eq( false )
|
22
|
+
expect( opts.short_length ).to eq( 16 )
|
23
|
+
expect( opts.max_memory ).to eq( -1 )
|
24
|
+
expect( opts.max_parse_time ).to eq( -1 )
|
25
|
+
expect( opts.all_short_connectors? ).to eq( false )
|
26
|
+
expect( opts.cost_model_type ).to eq( :vdal )
|
63
27
|
end
|
64
28
|
|
65
29
|
|
66
30
|
it "knows whether the timer constraints were exceeded or not" do
|
67
|
-
|
31
|
+
expect( opts.timer_expired? ).to eq( false )
|
68
32
|
end
|
69
33
|
|
34
|
+
|
70
35
|
it "knows whether the memory constraints were exceeded or not" do
|
71
|
-
|
36
|
+
expect( opts.memory_exhausted? ).to eq( false )
|
72
37
|
end
|
73
38
|
|
39
|
+
|
74
40
|
it "knows whether the timer constraints were exceeded or not" do
|
75
|
-
|
41
|
+
expect( opts.resources_exhausted? ).to eq( false )
|
76
42
|
end
|
77
43
|
|
44
|
+
|
78
45
|
it "can reset the resource constraints" do
|
79
|
-
|
80
|
-
|
81
|
-
}.
|
46
|
+
expect {
|
47
|
+
opts.reset_resources
|
48
|
+
}.to_not raise_error()
|
82
49
|
end
|
83
50
|
|
51
|
+
|
84
52
|
it "knows whether spell_guessing is enabled or not" do
|
85
|
-
|
53
|
+
expect( opts.spell_guessing_enabled? ).to eq( true )
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
it "can set the cost model type to :vdal" do
|
58
|
+
opts.cost_model_type = :vdal
|
59
|
+
end
|
60
|
+
|
61
|
+
|
62
|
+
it "can set the cost model type to :corpus" do
|
63
|
+
pending "no way to tell if the underlying library is compiled with CORPUS support or not"
|
64
|
+
expect {
|
65
|
+
opts.cost_model_type = :corpus
|
66
|
+
}.to change { opts.cost_model_type }.from( :vdal ).to( :corpus )
|
67
|
+
end
|
68
|
+
|
69
|
+
|
70
|
+
it "doesn't allow the cost model to be set to an invalid value" do
|
71
|
+
expect { opts.cost_model_type = :rafferty }.to raise_error
|
86
72
|
end
|
87
73
|
|
88
74
|
end
|
@@ -1,140 +1,120 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# Specification for the LinkParser::Sentence class
|
4
|
-
# $Id: sentence_spec.rb,v 1eddd00723e6 2010/11/22 15:59:36 ged $
|
5
|
-
#
|
6
|
-
# See the LICENSE file in the distribution for information about copyright and licensing.
|
7
|
-
#
|
8
|
-
|
9
|
-
BEGIN {
|
10
|
-
require 'pathname'
|
11
|
-
basedir = Pathname.new( __FILE__ ).dirname.parent.parent
|
12
|
-
|
13
|
-
libdir = basedir + 'lib'
|
14
|
-
extdir = basedir + 'ext'
|
15
|
-
|
16
|
-
$LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
|
17
|
-
$LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
|
18
|
-
$LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s )
|
19
|
-
}
|
1
|
+
# -*- ruby -*-
|
2
|
+
#encoding: utf-8
|
20
3
|
|
21
|
-
|
4
|
+
require_relative '../helpers'
|
22
5
|
|
6
|
+
require 'rspec'
|
23
7
|
require 'linkparser'
|
24
8
|
|
25
9
|
|
26
10
|
describe LinkParser::Sentence do
|
27
11
|
|
28
12
|
before( :all ) do
|
29
|
-
@dict = LinkParser::Dictionary.new( 'en', :
|
30
|
-
$DEBUG = true if ENV['DEBUG']
|
13
|
+
@dict = LinkParser::Dictionary.new( 'en', verbosity: 0 )
|
31
14
|
end
|
32
15
|
|
33
|
-
|
34
|
-
|
35
|
-
|
16
|
+
|
17
|
+
let( :dict ) { @dict }
|
18
|
+
let( :sentence ) { described_class.new("The cat runs.", dict) }
|
36
19
|
|
37
20
|
|
38
21
|
it "returns an informational string when inspected before it's been parsed" do
|
39
|
-
|
22
|
+
expect( sentence.inspect ).to match( %r{
|
40
23
|
<
|
41
24
|
LinkParser::Sentence:0x[[:xdigit:]]+
|
42
25
|
\s
|
43
26
|
\(unparsed\)
|
44
27
|
>
|
45
|
-
}x
|
28
|
+
}x )
|
46
29
|
end
|
47
30
|
|
48
31
|
it "returns an informational string when inspected after it's been parsed" do
|
49
|
-
|
50
|
-
|
32
|
+
sentence.parse
|
33
|
+
expect( sentence.inspect ).to match( %r{
|
51
34
|
<
|
52
35
|
LinkParser::Sentence:0x[[:xdigit:]]+
|
53
36
|
\s
|
54
|
-
(?-x:"LEFT-WALL the cat runs . RIGHT-WALL")
|
37
|
+
(?-x:"LEFT-WALL the cat\.n runs\.v . RIGHT-WALL")
|
55
38
|
/\d+\slinkages
|
56
39
|
/\d+\snulls
|
57
40
|
>
|
58
|
-
}x
|
41
|
+
}x )
|
59
42
|
end
|
60
43
|
|
61
44
|
it "can return itself as a tokenized string" do
|
62
|
-
|
45
|
+
expect( sentence.to_s ).to eq( "LEFT-WALL the cat.n runs.v . RIGHT-WALL" )
|
63
46
|
end
|
64
47
|
|
65
48
|
|
66
49
|
it "returns the linkage count as the result of parsing the sentence" do
|
67
|
-
|
50
|
+
expect( sentence.parse ).to eq( 3 )
|
68
51
|
end
|
69
52
|
|
70
53
|
|
71
54
|
it "accepts parse options when parsing" do
|
72
|
-
|
55
|
+
sentence.parse( verbosity: 0 )
|
73
56
|
end
|
74
57
|
|
75
58
|
|
76
59
|
it "knows how many words are in it, including walls and punctuation" do
|
77
|
-
|
60
|
+
expect( sentence.length ).to eq( 6 )
|
78
61
|
end
|
79
62
|
|
80
63
|
|
81
64
|
it "delegates linkage methods to its first linkage" do
|
82
|
-
|
65
|
+
expect( sentence.num_links ).to eq( 6 )
|
83
66
|
end
|
84
67
|
|
85
68
|
|
86
69
|
it "knows whether or not it's been parsed" do
|
87
|
-
|
88
|
-
|
89
|
-
|
70
|
+
expect( sentence ).to_not be_parsed()
|
71
|
+
sentence.parse
|
72
|
+
expect( sentence ).to be_parsed()
|
90
73
|
end
|
91
74
|
|
92
75
|
|
93
76
|
it "can return its linkages" do
|
94
|
-
|
95
|
-
|
77
|
+
expect( sentence.linkages.count ).to eq( 3 )
|
78
|
+
expect( sentence.linkages ).to all( be_an_instance_of(LinkParser::Linkage) )
|
96
79
|
end
|
97
80
|
|
98
|
-
it "can return words at a specified position" do
|
99
|
-
@sentence.word( 0 ).should == 'LEFT-WALL'
|
100
|
-
@sentence[ -1 ].should == 'RIGHT-WALL'
|
101
|
-
end
|
102
81
|
|
103
82
|
it "can return an Array of all tokenized words" do
|
104
|
-
|
105
|
-
'LEFT-WALL', 'the', 'cat', 'runs', '.', 'RIGHT-WALL'
|
106
|
-
]
|
83
|
+
expect( sentence.words ).to eq([
|
84
|
+
'LEFT-WALL', 'the', 'cat.n', 'runs.v', '.', 'RIGHT-WALL'
|
85
|
+
])
|
107
86
|
end
|
108
87
|
|
109
88
|
|
110
89
|
it "knows that it doesn't have any superfluous words in it" do
|
111
|
-
|
90
|
+
expect( sentence.null_count ).to eq( 0 )
|
112
91
|
end
|
113
92
|
|
114
93
|
|
115
94
|
|
116
95
|
describe "parsed from a sentence with a superfluous word in it" do
|
117
96
|
|
118
|
-
|
119
|
-
|
97
|
+
let( :sentence ) do
|
98
|
+
described_class.new("This sentence contains a gravel superfluous word.", dict)
|
120
99
|
end
|
121
100
|
|
122
101
|
|
123
102
|
it "knows how many null links it has" do
|
124
|
-
|
103
|
+
sentence.parse( max_null_count: 3, min_null_count: 1 )
|
104
|
+
expect( sentence.null_count ).to eq( 1 )
|
125
105
|
end
|
106
|
+
|
126
107
|
end
|
127
108
|
|
128
109
|
|
129
110
|
describe "parsed from a sentence that yields no linkages" do
|
130
111
|
|
131
|
-
|
132
|
-
|
133
|
-
end
|
112
|
+
let( :sentence ) { dict.parse("The event that he smiled at me gives me hope") }
|
113
|
+
|
134
114
|
|
135
115
|
it "raises a descriptive exception if a delegated method is called" do
|
136
116
|
expect {
|
137
|
-
|
117
|
+
sentence.diagram
|
138
118
|
}.to raise_error( LinkParser::Error, /sentence has no linkages/i )
|
139
119
|
end
|
140
120
|
|
data/spec/linkparser_spec.rb
CHANGED
@@ -1,36 +1,17 @@
|
|
1
|
-
|
2
|
-
#
|
3
|
-
# Specification for the LinkParser library
|
4
|
-
# $Id: linkparser_spec.rb,v 1eddd00723e6 2010/11/22 15:59:36 ged $
|
5
|
-
#
|
6
|
-
# See the LICENSE file in the distribution for information about copyright and licensing.
|
7
|
-
#
|
1
|
+
# -*- ruby -*-
|
2
|
+
#encoding: utf-8
|
8
3
|
|
9
|
-
|
10
|
-
require 'pathname'
|
11
|
-
basedir = Pathname.new( __FILE__ ).dirname.parent
|
12
|
-
|
13
|
-
libdir = basedir + 'lib'
|
14
|
-
extdir = basedir + 'ext'
|
15
|
-
|
16
|
-
$LOAD_PATH.unshift( basedir.to_s ) unless $LOAD_PATH.include?( basedir.to_s )
|
17
|
-
$LOAD_PATH.unshift( libdir.to_s ) unless $LOAD_PATH.include?( libdir.to_s )
|
18
|
-
$LOAD_PATH.unshift( extdir.to_s ) unless $LOAD_PATH.include?( extdir.to_s )
|
19
|
-
}
|
4
|
+
require_relative 'helpers'
|
20
5
|
|
21
6
|
require 'rspec'
|
22
|
-
|
23
7
|
require 'linkparser'
|
24
8
|
|
25
9
|
|
26
10
|
describe LinkParser do
|
27
11
|
|
28
|
-
before( :all ) do
|
29
|
-
$DEBUG = true if ENV['DEBUG']
|
30
|
-
end
|
31
|
-
|
32
12
|
it "knows what version of the link-grammar library it was built against" do
|
33
|
-
LinkParser.link_grammar_version.
|
13
|
+
expect( LinkParser.link_grammar_version ).to match( /link-grammar-\d+\.\d+\.\d+/i )
|
34
14
|
end
|
35
15
|
|
36
|
-
end
|
16
|
+
end
|
17
|
+
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: linkparser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Michael Granger
|
@@ -10,134 +9,146 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain:
|
13
|
-
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
RGVyQ0FhZ01WdURRClUwQkxtV0RGelBHR1dsUGVRQ3JZSENyK0FjSnorTlJu
|
37
|
-
YUhDS0xaZFNLai9SSHVUT3QrZ2JsUmV4OEZBaDhOZUEKY21saFhlNDZwWk5K
|
38
|
-
Z1dLYnhaYWg4NWpJang5NWhSOHZPSStOQU01aUg5a09xSzEzRHJ4YWNUS1Bo
|
39
|
-
cWo1UGp3RgotLS0tLUVORCBDRVJUSUZJQ0FURS0tLS0tCg==
|
40
|
-
date: 2012-10-10 00:00:00.000000000 Z
|
12
|
+
- |
|
13
|
+
-----BEGIN CERTIFICATE-----
|
14
|
+
MIIDbDCCAlSgAwIBAgIBATANBgkqhkiG9w0BAQUFADA+MQwwCgYDVQQDDANnZWQx
|
15
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
16
|
+
HhcNMTQwMzE5MDQzNTI2WhcNMTUwMzE5MDQzNTI2WjA+MQwwCgYDVQQDDANnZWQx
|
17
|
+
GTAXBgoJkiaJk/IsZAEZFglGYWVyaWVNVUQxEzARBgoJkiaJk/IsZAEZFgNvcmcw
|
18
|
+
ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDb92mkyYwuGBg1oRxt2tkH
|
19
|
+
+Uo3LAsaL/APBfSLzy8o3+B3AUHKCjMUaVeBoZdWtMHB75X3VQlvXfZMyBxj59Vo
|
20
|
+
cDthr3zdao4HnyrzAIQf7BO5Y8KBwVD+yyXCD/N65TTwqsQnO3ie7U5/9ut1rnNr
|
21
|
+
OkOzAscMwkfQxBkXDzjvAWa6UF4c5c9kR/T79iA21kDx9+bUMentU59aCJtUcbxa
|
22
|
+
7kcKJhPEYsk4OdxR9q2dphNMFDQsIdRO8rywX5FRHvcb+qnXC17RvxLHtOjysPtp
|
23
|
+
EWsYoZMxyCDJpUqbwoeiM+tAHoz2ABMv3Ahie3Qeb6+MZNAtMmaWfBx3dg2u+/WN
|
24
|
+
AgMBAAGjdTBzMAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBSZ0hCV
|
25
|
+
qoHr122fGKelqffzEQBhszAcBgNVHREEFTATgRFnZWRARmFlcmllTVVELm9yZzAc
|
26
|
+
BgNVHRIEFTATgRFnZWRARmFlcmllTVVELm9yZzANBgkqhkiG9w0BAQUFAAOCAQEA
|
27
|
+
TuL1Bzl6TBs1YEzEubFHb9XAPgehWzzUudjDKzTRd+uyZmxnomBqTCQjT5ucNRph
|
28
|
+
3jZ6bhLNooLQxTjIuHodeGcEMHZdt4Yi7SyPmw5Nry12z6wrDp+5aGps3HsE5WsQ
|
29
|
+
Zq2EuyEOc96g31uoIvjNdieKs+1kE+K+dJDjtw+wTH2i63P7r6N/NfPPXpxsFquo
|
30
|
+
wcYRRrHdR7GhdJeT+V8Q8Bi5bglCUGdx+8scMgkkePc98k9osQHypbACmzO+Bqkv
|
31
|
+
c7ZKPJcWBv0sm81+FCZXNACn2f9jfF8OQinxVs0O052KbGuEQaaiGIYeuuwQE2q6
|
32
|
+
ggcrPfcYeTwWlfZPu2LrBg==
|
33
|
+
-----END CERTIFICATE-----
|
34
|
+
date: 2015-03-12 00:00:00.000000000 Z
|
41
35
|
dependencies:
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: loggability
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '0.11'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - "~>"
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: '0.11'
|
42
50
|
- !ruby/object:Gem::Dependency
|
43
51
|
name: hoe-mercurial
|
44
52
|
requirement: !ruby/object:Gem::Requirement
|
45
|
-
none: false
|
46
53
|
requirements:
|
47
|
-
- - ~>
|
54
|
+
- - "~>"
|
48
55
|
- !ruby/object:Gem::Version
|
49
|
-
version: 1.4
|
56
|
+
version: '1.4'
|
50
57
|
type: :development
|
51
58
|
prerelease: false
|
52
59
|
version_requirements: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
60
|
requirements:
|
55
|
-
- - ~>
|
61
|
+
- - "~>"
|
56
62
|
- !ruby/object:Gem::Version
|
57
|
-
version: 1.4
|
63
|
+
version: '1.4'
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
name: hoe-deveiate
|
66
|
+
requirement: !ruby/object:Gem::Requirement
|
67
|
+
requirements:
|
68
|
+
- - "~>"
|
69
|
+
- !ruby/object:Gem::Version
|
70
|
+
version: '0.6'
|
71
|
+
type: :development
|
72
|
+
prerelease: false
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
requirements:
|
75
|
+
- - "~>"
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0.6'
|
58
78
|
- !ruby/object:Gem::Dependency
|
59
79
|
name: hoe-highline
|
60
80
|
requirement: !ruby/object:Gem::Requirement
|
61
|
-
none: false
|
62
81
|
requirements:
|
63
|
-
- - ~>
|
82
|
+
- - "~>"
|
64
83
|
- !ruby/object:Gem::Version
|
65
|
-
version: 0.
|
84
|
+
version: '0.2'
|
66
85
|
type: :development
|
67
86
|
prerelease: false
|
68
87
|
version_requirements: !ruby/object:Gem::Requirement
|
69
|
-
none: false
|
70
88
|
requirements:
|
71
|
-
- - ~>
|
89
|
+
- - "~>"
|
72
90
|
- !ruby/object:Gem::Version
|
73
|
-
version: 0.
|
91
|
+
version: '0.2'
|
74
92
|
- !ruby/object:Gem::Dependency
|
75
93
|
name: rdoc
|
76
94
|
requirement: !ruby/object:Gem::Requirement
|
77
|
-
none: false
|
78
95
|
requirements:
|
79
|
-
- - ~>
|
96
|
+
- - "~>"
|
80
97
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
98
|
+
version: '4.0'
|
82
99
|
type: :development
|
83
100
|
prerelease: false
|
84
101
|
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
none: false
|
86
102
|
requirements:
|
87
|
-
- - ~>
|
103
|
+
- - "~>"
|
88
104
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
105
|
+
version: '4.0'
|
90
106
|
- !ruby/object:Gem::Dependency
|
91
107
|
name: rake-compiler
|
92
108
|
requirement: !ruby/object:Gem::Requirement
|
93
|
-
none: false
|
94
109
|
requirements:
|
95
|
-
- - ~>
|
110
|
+
- - "~>"
|
96
111
|
- !ruby/object:Gem::Version
|
97
112
|
version: '0'
|
98
113
|
type: :development
|
99
114
|
prerelease: false
|
100
115
|
version_requirements: !ruby/object:Gem::Requirement
|
101
|
-
none: false
|
102
116
|
requirements:
|
103
|
-
- - ~>
|
117
|
+
- - "~>"
|
104
118
|
- !ruby/object:Gem::Version
|
105
119
|
version: '0'
|
106
120
|
- !ruby/object:Gem::Dependency
|
107
|
-
name:
|
121
|
+
name: rdoc-generator-fivefish
|
108
122
|
requirement: !ruby/object:Gem::Requirement
|
109
|
-
none: false
|
110
123
|
requirements:
|
111
|
-
- - ~>
|
124
|
+
- - "~>"
|
112
125
|
- !ruby/object:Gem::Version
|
113
126
|
version: '0'
|
114
127
|
type: :development
|
115
128
|
prerelease: false
|
116
129
|
version_requirements: !ruby/object:Gem::Requirement
|
117
|
-
none: false
|
118
130
|
requirements:
|
119
|
-
- - ~>
|
131
|
+
- - "~>"
|
120
132
|
- !ruby/object:Gem::Version
|
121
133
|
version: '0'
|
122
134
|
- !ruby/object:Gem::Dependency
|
123
135
|
name: hoe
|
124
136
|
requirement: !ruby/object:Gem::Requirement
|
125
|
-
none: false
|
126
137
|
requirements:
|
127
|
-
- - ~>
|
138
|
+
- - "~>"
|
128
139
|
- !ruby/object:Gem::Version
|
129
|
-
version: '3.
|
140
|
+
version: '3.13'
|
130
141
|
type: :development
|
131
142
|
prerelease: false
|
132
143
|
version_requirements: !ruby/object:Gem::Requirement
|
133
|
-
none: false
|
134
144
|
requirements:
|
135
|
-
- - ~>
|
145
|
+
- - "~>"
|
136
146
|
- !ruby/object:Gem::Version
|
137
|
-
version: '3.
|
138
|
-
description:
|
139
|
-
|
140
|
-
|
147
|
+
version: '3.13'
|
148
|
+
description: |-
|
149
|
+
This module is a Ruby binding for
|
150
|
+
[the Abiword version](http://www.abisource.com/projects/link-grammar/) of CMU's
|
151
|
+
[Link Grammar](http://www.link.cs.cmu.edu/link/), a syntactic parser of English.
|
141
152
|
email:
|
142
153
|
- ged@FaerieMUD.org
|
143
154
|
- stillflame@FaerieMUD.org
|
@@ -145,9 +156,9 @@ executables: []
|
|
145
156
|
extensions:
|
146
157
|
- ext/extconf.rb
|
147
158
|
extra_rdoc_files:
|
148
|
-
- History.
|
159
|
+
- History.md
|
149
160
|
- Manifest.txt
|
150
|
-
- README.
|
161
|
+
- README.md
|
151
162
|
- ext/dictionary.c
|
152
163
|
- ext/linkage.c
|
153
164
|
- ext/linkparser.c
|
@@ -155,15 +166,14 @@ extra_rdoc_files:
|
|
155
166
|
- ext/parseoptions.c
|
156
167
|
- ext/sentence.c
|
157
168
|
files:
|
158
|
-
- .gemtest
|
169
|
+
- ".gemtest"
|
170
|
+
- ".simplecov"
|
159
171
|
- ChangeLog
|
160
|
-
- History.
|
172
|
+
- History.md
|
161
173
|
- LICENSE
|
162
174
|
- Manifest.txt
|
163
|
-
- README.
|
175
|
+
- README.md
|
164
176
|
- Rakefile
|
165
|
-
- examples/basic-api.rb
|
166
|
-
- examples/readme-example.rb
|
167
177
|
- ext/dictionary.c
|
168
178
|
- ext/extconf.rb
|
169
179
|
- ext/linkage.c
|
@@ -172,10 +182,13 @@ files:
|
|
172
182
|
- ext/parseoptions.c
|
173
183
|
- ext/sentence.c
|
174
184
|
- lib/linkparser.rb
|
185
|
+
- lib/linkparser/dictionary.rb
|
175
186
|
- lib/linkparser/linkage.rb
|
176
187
|
- lib/linkparser/mixins.rb
|
188
|
+
- lib/linkparser/parseoptions.rb
|
177
189
|
- lib/linkparser/sentence.rb
|
178
190
|
- spec/bugfixes_spec.rb
|
191
|
+
- spec/helpers.rb
|
179
192
|
- spec/linkparser/dictionary_spec.rb
|
180
193
|
- spec/linkparser/linkage_spec.rb
|
181
194
|
- spec/linkparser/mixins_spec.rb
|
@@ -185,30 +198,29 @@ files:
|
|
185
198
|
homepage: http://deveiate.org/projects/Ruby-LinkParser
|
186
199
|
licenses:
|
187
200
|
- BSD
|
201
|
+
metadata: {}
|
188
202
|
post_install_message:
|
189
203
|
rdoc_options:
|
190
|
-
- --main
|
191
|
-
- README.
|
204
|
+
- "--main"
|
205
|
+
- README.md
|
192
206
|
require_paths:
|
193
207
|
- lib
|
194
208
|
required_ruby_version: !ruby/object:Gem::Requirement
|
195
|
-
none: false
|
196
209
|
requirements:
|
197
|
-
- -
|
210
|
+
- - ">="
|
198
211
|
- !ruby/object:Gem::Version
|
199
|
-
version:
|
212
|
+
version: 2.0.0
|
200
213
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
|
-
none: false
|
202
214
|
requirements:
|
203
|
-
- -
|
215
|
+
- - ">="
|
204
216
|
- !ruby/object:Gem::Version
|
205
217
|
version: '0'
|
206
218
|
requirements: []
|
207
|
-
rubyforge_project:
|
208
|
-
rubygems_version:
|
219
|
+
rubyforge_project:
|
220
|
+
rubygems_version: 2.4.5
|
209
221
|
signing_key:
|
210
|
-
specification_version:
|
211
|
-
summary: This module is a Ruby binding for
|
212
|
-
of CMU's
|
222
|
+
specification_version: 4
|
223
|
+
summary: This module is a Ruby binding for [the Abiword version](http://www.abisource.com/projects/link-grammar/)
|
224
|
+
of CMU's [Link Grammar](http://www.link.cs.cmu.edu/link/), a syntactic parser of
|
213
225
|
English.
|
214
226
|
test_files: []
|