lib/tfidf_ja.rb
def load_dic
      idf_dic = File.dirname(__FILE__) + "/../dic/#{Version.ruby}/idf.dic"
      File.open(idf_dic) { |f|
        return Marshal.load(f)
      }
    end
def load_dic
      idf_dic = File.dirname(__FILE__) + "/../dic/#{Version.ruby}/idf.dic"
      File.open(idf_dic) { |f|
        return Marshal.load(f)
      }
    end
辞書ファイルを読み込む