| 1 | (in /Users/julia/linkparser-1.0.6) |
|---|
| 2 | /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_LINKAGE_FREE_DIAGRAM -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -DHAVE_LINKGRAMMAR_GET_VERSION -DHAVE_LINKAGE_FREE_LINKS_AND_DOMAINS -DHAVE_PARSE_OPTIONS_GET_SPELL_GUESS -DHAVE_LINKAGE_GET_DISJUNCT_STR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -Wall -DDEBUG -arch x86_64 -c dictionary.c |
|---|
| 3 | /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_LINKAGE_FREE_DIAGRAM -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -DHAVE_LINKGRAMMAR_GET_VERSION -DHAVE_LINKAGE_FREE_LINKS_AND_DOMAINS -DHAVE_PARSE_OPTIONS_GET_SPELL_GUESS -DHAVE_LINKAGE_GET_DISJUNCT_STR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -Wall -DDEBUG -arch x86_64 -c linkage.c |
|---|
| 4 | /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_LINKAGE_FREE_DIAGRAM -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -DHAVE_LINKGRAMMAR_GET_VERSION -DHAVE_LINKAGE_FREE_LINKS_AND_DOMAINS -DHAVE_PARSE_OPTIONS_GET_SPELL_GUESS -DHAVE_LINKAGE_GET_DISJUNCT_STR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -Wall -DDEBUG -arch x86_64 -c linkparser.c |
|---|
| 5 | /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_LINKAGE_FREE_DIAGRAM -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -DHAVE_LINKGRAMMAR_GET_VERSION -DHAVE_LINKAGE_FREE_LINKS_AND_DOMAINS -DHAVE_PARSE_OPTIONS_GET_SPELL_GUESS -DHAVE_LINKAGE_GET_DISJUNCT_STR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -Wall -DDEBUG -arch x86_64 -c parseoptions.c |
|---|
| 6 | /usr/bin/gcc-4.2 -I. -I. -I/opt/local/lib/ruby/1.8/i686-darwin10 -I. -DHAVE_LINKAGE_FREE_DIAGRAM -DHAVE_LINKAGE_GET_CURRENT_SUBLINKAGE -DHAVE_LINKGRAMMAR_GET_VERSION -DHAVE_LINKAGE_FREE_LINKS_AND_DOMAINS -DHAVE_PARSE_OPTIONS_GET_SPELL_GUESS -DHAVE_LINKAGE_GET_DISJUNCT_STR -I/opt/local/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/opt/local/include -fno-common -O2 -arch x86_64 -fno-common -pipe -fno-common -Wall -DDEBUG -arch x86_64 -c sentence.c |
|---|
| 7 | /usr/bin/gcc-4.2 -dynamic -bundle -undefined suppress -flat_namespace -o linkparser_ext.bundle dictionary.o linkage.o linkparser.o parseoptions.o sentence.o -L. -L/opt/local/lib -L. -L/opt/local/lib -arch x86_64 -lruby -llink-grammar -lpthread -ldl -lobjc |
|---|
| 8 | |
|---|
| 9 | bugfix for #3: The first linkage for "The cat runs." |
|---|
| 10 | - thinks cat is the subject |
|---|
| 11 | - thinks runs is the verb |
|---|
| 12 | |
|---|
| 13 | LinkParser::Dictionary |
|---|
| 14 | - can be instantiated using all default values |
|---|
| 15 | - can be instantiated with an options hash |
|---|
| 16 | - raises an error when created with an bad number of arguments |
|---|
| 17 | - can be instantiated with a language argument |
|---|
| 18 | - can be instantiated with both a language and an options hash |
|---|
| 19 | - raises an exception if created with unknown dictionaries |
|---|
| 20 | - raises an exception if created with an unknown language |
|---|
| 21 | |
|---|
| 22 | LinkParser::Dictionary instance |
|---|
| 23 | - knows what the total cost of its linkages are |
|---|
| 24 | - can parse a sentence |
|---|
| 25 | - passes on its options to the sentences it parses |
|---|
| 26 | |
|---|
| 27 | LinkParser::Linkage |
|---|
| 28 | - can build a diagram string for a sentence |
|---|
| 29 | - can build a 'links and domains' diagram |
|---|
| 30 | - knows how many words are in the sentence |
|---|
| 31 | - can return a list of the tokenized words (FAILED - 1) |
|---|
| 32 | - knows how many links are in the sentence |
|---|
| 33 | - can return the left word for any of its links (FAILED - 2) |
|---|
| 34 | - can return the right word for any of its links (FAILED - 3) |
|---|
| 35 | - can return the length of any of its links |
|---|
| 36 | - can return labels for any of its links |
|---|
| 37 | - can return left labels for any of its links |
|---|
| 38 | - can return labels for any of its links |
|---|
| 39 | - can return the number of domains for any link |
|---|
| 40 | - can return the names of the domains of any of its links |
|---|
| 41 | - can return the disjunct strings for any of its words |
|---|
| 42 | - can return parsed disjuncts for any of its words |
|---|
| 43 | - can report on the various cost metrics of the parse |
|---|
| 44 | - implements Link Grammar predicate methods |
|---|
| 45 | - contains link structs describing the linkage (FAILED - 4) |
|---|
| 46 | - knows what word is the verb in the sentence (FAILED - 5) |
|---|
| 47 | - knows when the sentence doesn't have a direct object |
|---|
| 48 | - knows which of its words are nouns |
|---|
| 49 | - returns an indented sexps for the constituent tree string by default (mode 1) |
|---|
| 50 | - returns indented sexps for the constituent tree string if fetched with explicit mode '1' |
|---|
| 51 | - returns bracketed constituents if constituent tree string is fetched in mode 2 |
|---|
| 52 | - returns unindented sexps for the constituent tree string if constituent tree string is fetched in mode 3 |
|---|
| 53 | - raises an exception for any numeric constituent tree string mode greater than 3 |
|---|
| 54 | - raises an exception for any numeric constituent tree string mode less than 1 |
|---|
| 55 | - raises an exception when a non-numeric constituent tree string mode is given |
|---|
| 56 | - returns an Array of CTree structs for its constituent tree |
|---|
| 57 | - returns 0 as the number of the current sublinkage since it has no conjunctions |
|---|
| 58 | - returns an informational string when inspected |
|---|
| 59 | - knows that it doesn't have any conjunctions |
|---|
| 60 | - should know that it's not an imperative sentence |
|---|
| 61 | |
|---|
| 62 | LinkParser::Linkage from a simple sentence with a direct object |
|---|
| 63 | - doesn't have any sublinkages |
|---|
| 64 | - doesn't change after computing its union |
|---|
| 65 | - knows what word is the object in the sentence (FAILED - 6) |
|---|
| 66 | |
|---|
| 67 | LinkParser::Linkage from a sentence with a conjunction |
|---|
| 68 | - knows that it has a conjunction |
|---|
| 69 | - has two sublinkages |
|---|
| 70 | - adds a sublinkage after computing its union |
|---|
| 71 | - knows what word is the verb in the current sublinkage (FAILED - 7) |
|---|
| 72 | - knows what word is the object in the current sublinkage |
|---|
| 73 | |
|---|
| 74 | LinkParser::Linkage from an imperative sentence |
|---|
| 75 | - knows that it's an imperative sentence |
|---|
| 76 | |
|---|
| 77 | LinkParser::Linkage bugfixes |
|---|
| 78 | - also strips off the '.p' from the subject and object when they are plural |
|---|
| 79 | |
|---|
| 80 | LinkParser::ParseOptions |
|---|
| 81 | - starts out with documented defaults |
|---|
| 82 | - supports all the members mentioned in the documentation (PENDING: some of them aren't implemented in the link-grammar library) |
|---|
| 83 | - knows whether the timer constraints were exceeded or not |
|---|
| 84 | - knows whether the memory constraints were exceeded or not |
|---|
| 85 | - knows whether the timer constraints were exceeded or not |
|---|
| 86 | - can reset the resource constraints |
|---|
| 87 | |
|---|
| 88 | LinkParser::ParseOptions in versions of link-grammar >= 4.5.0 |
|---|
| 89 | - knows whether spell_guessing is enabled or not |
|---|
| 90 | |
|---|
| 91 | LinkParser::Sentence |
|---|
| 92 | - returns an informational string when inspected before it's been parsed |
|---|
| 93 | - returns an informational string when inspected after it's been parsed |
|---|
| 94 | - can return itself as a tokenized string |
|---|
| 95 | - returns the linkage count as the result of parsing the sentence |
|---|
| 96 | - accepts parse options when parsing |
|---|
| 97 | - knows how many words are in it, including walls and punctuation |
|---|
| 98 | - delegates linkage methods to its first linkage |
|---|
| 99 | - knows whether or not it's been parsed |
|---|
| 100 | - can return its linkages |
|---|
| 101 | - can return words at a specified position |
|---|
| 102 | - can return an Array of all tokenized words |
|---|
| 103 | - knows that it doesn't have any superfluous words in it |
|---|
| 104 | |
|---|
| 105 | LinkParser::Sentence parsed from a sentence with a superfluous word in it |
|---|
| 106 | - knows how many null links it has |
|---|
| 107 | |
|---|
| 108 | LinkParser::Sentence parsed from a sentence that yields no linkages |
|---|
| 109 | - raises a descriptive exception if a delegated method is called |
|---|
| 110 | |
|---|
| 111 | LinkParser |
|---|
| 112 | - knows what version of the link-grammar library it was built against |
|---|
| 113 | |
|---|
| 114 | Pending: |
|---|
| 115 | |
|---|
| 116 | LinkParser::ParseOptions supports all the members mentioned in the documentation (some of them aren't implemented in the link-grammar library) |
|---|
| 117 | ./spec/linkparser/parseoptions_spec.rb:53 |
|---|
| 118 | |
|---|
| 119 | 1) |
|---|
| 120 | 'LinkParser::Linkage can return a list of the tokenized words' FAILED |
|---|
| 121 | expected ["LEFT-WALL", "the", "flag.n", "was.v-d", "wet.a", ".", "RIGHT-WALL"] to include "was.v" |
|---|
| 122 | ./spec/linkparser/linkage_spec.rb:87: |
|---|
| 123 | |
|---|
| 124 | 2) |
|---|
| 125 | 'LinkParser::Linkage can return the left word for any of its links' FAILED |
|---|
| 126 | expected: nil, |
|---|
| 127 | got: 3 (using ==) |
|---|
| 128 | ./spec/linkparser/linkage_spec.rb:113: |
|---|
| 129 | |
|---|
| 130 | 3) |
|---|
| 131 | 'LinkParser::Linkage can return the right word for any of its links' FAILED |
|---|
| 132 | expected: nil, |
|---|
| 133 | got: 3 (using ==) |
|---|
| 134 | ./spec/linkparser/linkage_spec.rb:131: |
|---|
| 135 | |
|---|
| 136 | 4) |
|---|
| 137 | 'LinkParser::Linkage contains link structs describing the linkage' FAILED |
|---|
| 138 | expected: "was.v", |
|---|
| 139 | got: "was.v-d" (using ==) |
|---|
| 140 | |
|---|
| 141 | Diff: |
|---|
| 142 | @@ -1,2 +1,2 @@ |
|---|
| 143 | -was.v |
|---|
| 144 | +was.v-d |
|---|
| 145 | ./spec/linkparser/linkage_spec.rb:267: |
|---|
| 146 | |
|---|
| 147 | 5) |
|---|
| 148 | 'LinkParser::Linkage knows what word is the verb in the sentence' FAILED |
|---|
| 149 | expected: "was", |
|---|
| 150 | got: "was.v-d" (using ==) |
|---|
| 151 | |
|---|
| 152 | Diff: |
|---|
| 153 | @@ -1,2 +1,2 @@ |
|---|
| 154 | -was |
|---|
| 155 | +was.v-d |
|---|
| 156 | ./spec/linkparser/linkage_spec.rb:273: |
|---|
| 157 | |
|---|
| 158 | 6) |
|---|
| 159 | 'LinkParser::Linkage from a simple sentence with a direct object knows what word is the object in the sentence' FAILED |
|---|
| 160 | expected: "home", |
|---|
| 161 | got: nil (using ==) |
|---|
| 162 | ./spec/linkparser/linkage_spec.rb:369: |
|---|
| 163 | |
|---|
| 164 | 7) |
|---|
| 165 | 'LinkParser::Linkage from a sentence with a conjunction knows what word is the verb in the current sublinkage' FAILED |
|---|
| 166 | expected: "rolled", |
|---|
| 167 | got: "rolled.v-d" (using ==) |
|---|
| 168 | |
|---|
| 169 | Diff: |
|---|
| 170 | @@ -1,2 +1,2 @@ |
|---|
| 171 | -rolled |
|---|
| 172 | +rolled.v-d |
|---|
| 173 | ./spec/linkparser/linkage_spec.rb:405: |
|---|
| 174 | |
|---|
| 175 | Finished in 13.221071 seconds |
|---|
| 176 | |
|---|
| 177 | 77 examples, 7 failures, 1 pending |
|---|