【文件属性】:
文件名称:lasean:Ruby的潜在语义分析(LSA)
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-16 19:40:56
ruby lsa latent-semantic-analysis rubynlp Ruby
拉丁语
Ruby的潜在语义分析(LSA)。
安装
将此行添加到您的应用程序的Gemfile中:
gem 'lasean'
然后执行:
$ bundle
或将其自己安装为:
$ gem install lasean
用法
Lasean提供了一个非常简单的API:
class LSA
attr_accessor :u , :s , :v
def initialize ( matrix )
def classify_row ( values ) { | index , row , similarity | … }
def classify_column ( values ) { | index , column , similarity | … }
end
分类行:
matrix = …
lsa = LSA . new ( matrix )
lsa . cl
【文件预览】:
lasean-master
----lib()
--------lasean()
--------lasean.rb(115B)
----Gemfile(91B)
----Rakefile(28B)
----.travis.yml(30B)
----LICENSE(2KB)
----lasean.gemspec(1KB)
----README.md(1KB)
----.gitignore(87B)
----bin()
--------console(331B)
--------setup(115B)