linkparser 1.1.4 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata.gz.sig CHANGED
Binary file
data/History.rdoc DELETED
@@ -1,41 +0,0 @@
1
- == v1.1.4 [2012-01-31] Michael Granger <ged@FaerieMUD.org>
2
-
3
- - Packaging fixes, dependency update
4
-
5
-
6
- == v1.1.3 [2011-05-16] Michael Granger <ged@FaerieMUD.org>
7
-
8
- - Use a relative path for path constants (Alessandro Berardi), update
9
- deps
10
-
11
-
12
- == v1.1.2 [2011-05-12] Michael Granger <ged@FaerieMUD.org>
13
-
14
- - Fixes package configuration options concatenation bug (see
15
- http://goo.gl/G49Y8) (Alessandro Berardi <berardialessandro@gmail.com>)
16
- - De-Yard, build cleanup, added gem-testers support
17
- - Removed unnecessary (and non-existant on Ruby < 1.9) include.
18
- - Fixing some shadowed variables for 1.9.2.
19
- - Avoid circular requires.
20
-
21
-
22
- == v1.1.1 [2010-12-30] Michael Granger <ged@FaerieMUD.org>
23
-
24
- * Updated for link-grammar 4.7.1.
25
- * Fixed some specs that were doing nothing, using old RSpec syntax, etc.
26
- * Converted to Hoe.
27
-
28
-
29
- == v1.1.0 [2010-11-30] Michael Granger <ged@FaerieMUD.org>
30
-
31
- * Updated to support link-grammar 4.7.0. Note that this breaks compatibility with
32
- earlier versions, as the model for sentences with conjunctions has changed
33
- significantly.
34
- * Use pkgconfig if available.
35
- * Various memory-management and 1.9.2 fixes.
36
-
37
-
38
- == v1.0.6 [2009-10-16] Michael Granger <ged@FaerieMUD.org>
39
-
40
- [TODO]
41
-
@@ -1,65 +0,0 @@
1
- #!/usr/bin/ruby
2
-
3
- # The C equivalent:
4
- # opts = parse_options_create();
5
- # dict = dictionary_create("4.0.dict", "4.0.knowledge", NULL, "4.0.affix");
6
- # sent = sentence_create(input_string[i], dict);
7
- # num_linkages = sentence_parse(sent, opts);
8
- # linkage = linkage_create(0, sent, opts);
9
- # printf("%s\n", diagram = linkage_print_diagram(linkage));
10
- # string_delete(diagram);
11
- # linkage_delete(linkage);
12
- # dictionary_delete(dict);
13
- # parse_options_delete(opts);
14
-
15
-
16
- opts = {
17
- :verbosity => 0,
18
- :linkage_limit => 10000,
19
- :min_null_count => 0,
20
- :max_null_count => 0,
21
- :null_block => 1,
22
- :islands_ok => false,
23
- :short_length => 6,
24
- :all_short => false,
25
- :display_short => true,
26
- :display_word_subscripts => true,
27
- :display_link_subscripts => true,
28
- :display_walls => false,
29
- :display_union => false,
30
- :allow_null => true,
31
- :echo_on => false,
32
- :batch_mode => false,
33
- :panic_mode => false,
34
- :screen_width => 79,
35
- :display_on => true,
36
- :display_postscript => false,
37
- :display_bad => false,
38
- :display_links => false,
39
- }
40
-
41
- paths = [
42
- dict_name,
43
- pp_name,
44
- cons_name,
45
- affix_name
46
- ]
47
-
48
- dict = LinkParser::Dict.create( opts )
49
- dict = LinkParser::Dict.create( paths )
50
- dict = LinkParser::Dict.create( "en" )
51
- dict = LinkParser::Dict.create( "en", opts )
52
-
53
- sentence = dict.parse( input_string, :verbosity => 3, :islands_ok => true )
54
- # -or-
55
- sentence = LinkParser::Sentence.new( input_string, dict )
56
- linkage_count = sentence.parse( :verbosity => 3, :islands_ok => true )
57
-
58
- sentence.linkages.each do |linkage|
59
- puts linkage.diagram
60
- end
61
- sentence.each_linkage do |linkage|
62
- puts linkage.diagram
63
- end
64
-
65
-
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env irb --prompt-mode xmp
2
-
3
- require 'linkparser'
4
-
5
- dict = LinkParser::Dictionary.new( :screen_width => 100 )
6
- sent = dict.parse( "People use Ruby for all kinds of nifty things." )
7
-
8
- sent.subject
9
- sent.verb
10
- sent.object
11
-
12
- puts sent.constituent_tree_string
13
-
14
- puts sent.diagram