Sha256: 764d3bcda17c50914fc1c4a87061cdde5bfa0d18a85c38af2a7a6655eeb7681c

Contents?: true

Size: 432 Bytes

Versions: 8

Compression:

Stored size: 432 Bytes

Contents

require File.join(File.expand_path(File.dirname(__FILE__)), '../../..', 'test_helper.rb')
require 'rbbt/document'
require 'rbbt/document/corpus'
require 'rbbt/document/corpus/pubmed'

class TestCorpusPubmed < Test::Unit::TestCase
  def test_add_pmid
    corpus = Document::Corpus.setup({})

    document = corpus.add_pmid("33359141", :abstract, true)
    title = document.to(:title)
    assert title.include?("COVID-19")
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rbbt-text-1.5.2 test/rbbt/document/corpus/test_pubmed.rb
rbbt-text-1.5.1 test/rbbt/document/corpus/test_pubmed.rb
rbbt-text-1.5.0 test/rbbt/document/corpus/test_pubmed.rb
rbbt-text-1.4.0 test/rbbt/document/corpus/test_pubmed.rb
rbbt-text-1.3.11 test/rbbt/document/corpus/test_pubmed.rb
rbbt-text-1.3.10 test/rbbt/document/corpus/test_pubmed.rb
rbbt-text-1.3.9 test/rbbt/document/corpus/test_pubmed.rb
rbbt-text-1.3.8 test/rbbt/document/corpus/test_pubmed.rb