test/rbbt/ner/test_abner.rb in rbbt-text-0.2.0 vs test/rbbt/ner/test_abner.rb in rbbt-text-0.2.1
- old
+ new
@@ -2,14 +2,14 @@
require 'rbbt/ner/abner'
require 'test/unit'
class TestAbner < Test::Unit::TestCase
- def test_extract
+ def test_match
begin
ner = Abner.new
- mentions = ner.extract(" The P-ITIM-compelled multi-phosphoprotein complex binds to and activates SHP-2, which in turn dephosphorylates SHIP and Shc and probably other substrates.")
+ mentions = ner.match(" The P-ITIM-compelled multi-phosphoprotein complex binds to and activates SHP-2, which in turn dephosphorylates SHIP and Shc and probably other substrates.")
["SHP-2", "SHIP", "Shc"].each{|mention|
assert(mentions.include? mention)
}
rescue
end