Sha256: 4d6ca1a8cbd0a05102e583b6e024fb6ddde6df83a77caf645940c3d89f2779e6
Contents?: true
Size: 339 Bytes
Versions: 1
Compression:
Stored size: 339 Bytes
Contents
require 'r_nlp' a = RNlp::Tf.new('ja') text = '私は誰だ' p a.count(text) b = RNlp::Tf.new('en') text = 'who are you ?' p b.count(text) c = ['text 1 is hoge', 'text 2 is yeah', 'text 3 is hoge'] idf = RNlp::Idf.new('en') p idf.calc_idf('hoge', c) str = 'これはテストです' morph = RNlp::Tokenize.new p morph.tokenize(str)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
r_nlp-0.1.8 | test.rb |