Sha256: 892ffa20b42c7c80ef4d3f21599102a036b8f9a4ecfd4de65b99e2fe36a3c06e

Contents?: true

Size: 555 Bytes

Versions: 18

Compression:

Stored size: 555 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), '../../test_helper.rb')
require 'rbbt/ner/abner'
require 'test/unit'

class TestAbner < Test::Unit::TestCase

  def test_match
    begin
      ner = Abner.new

      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
      Log.exception $!
    end
  end
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rbbt-text-1.5.2 test/rbbt/ner/test_abner.rb
rbbt-text-1.5.1 test/rbbt/ner/test_abner.rb
rbbt-text-1.5.0 test/rbbt/ner/test_abner.rb
rbbt-text-1.4.0 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.11 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.10 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.9 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.8 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.7 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.6 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.5 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.4 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.3 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.2 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.1 test/rbbt/ner/test_abner.rb
rbbt-text-1.3.0 test/rbbt/ner/test_abner.rb
rbbt-text-1.2.0 test/rbbt/ner/test_abner.rb
rbbt-text-1.1.9 test/rbbt/ner/test_abner.rb