lib/tfidf_ja.rb
def tfidf(words)
      tfidfs = {}
      set_tf_map(words)
      @tfs.each_pair { |word, tf|
        tfidfs[word] = tf * idf(word)
      }
      return tfidfs
    end
def tfidf(words)
      tfidfs = {}
      set_tf_map(words)
      @tfs.each_pair { |word, tf|
        tfidfs[word] = tf * idf(word)
      }
      return tfidfs
    end
TF-IDFを算出する
 words:: 形態素配列
 return:: key = 形態素、value = TF-IDF値のハッシュテーブル