Ticket #1 (closed defect: fixed)
linkages.first.verb thinks "cat' is a verb in "The cat runs."
| Reported by: | rm_rails | Owned by: | deveiant |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Version: | Keywords: | linkages.verb | |
| Cc: | rm_rails@… |
Description
I would have expected this to say "runs" is the verb. It told me "cat.n" is the verb instead.
require 'linkparser'
@dict = LinkParser::Dictionary.new( :verbosity => 0 )
s = LinkParser::Sentence.new('The cat runs.',@dict)
puts s.linkages.first.verb # "cat.n" !?!?!
Change History
comment:2 Changed 3 years ago by deveiant
- Status changed from assigned to closed
- Resolution set to fixed
This is fixed in the latest release:
$ irb Requiring local .irbrc... >>> Adding 'lib' to load path... Requiring 'linkparser' module... irb(main):001:0> dict = LinkParser::Dictionary.new( :verbosity => 0 ) => #<LinkParser::Dictionary:0x58e544> irb(main):002:0> s = dict.parse( 'The cat runs.' ) => #<LinkParser::Sentence:0x162df8 "LEFT-WALL the cat runs . RIGHT-WALL"/1 linkages/0 nulls> irb(main):003:0> s.linkages.first.verb => "runs"
Note: See
TracTickets for help on using
tickets.
