lib/rbbt/document/corpus.rb in rbbt-text-1.3.8 vs lib/rbbt/document/corpus.rb in rbbt-text-1.3.9
- old
+ new
@@ -1,10 +1,10 @@
require 'rbbt-util'
module Document::Corpus
def self.setup(corpus)
- corpus = Persist.open_tokyocabinet(corpus, true, :single, "BDB") if String === corpus
+ corpus = Persist.open_tokyocabinet(corpus, false, :single, "BDB") if String === corpus
corpus.extend Document::Corpus unless Document::Corpus === corpus
corpus.extend Persist::TSVAdapter unless Persist::TSVAdapter === corpus
corpus.close
corpus
end