gingerice:Ruby包装器,用于基于完整句子的上下文来纠正拼写和语法错误

时间:2021-02-02 04:29:58
【文件属性】:
文件名称:gingerice:Ruby包装器,用于基于完整句子的上下文来纠正拼写和语法错误
文件大小:8KB
文件格式:ZIP
更新时间:2021-02-02 04:29:58
ruby rubygem RubyRuby 生姜 Ginger Proofreader的Ruby包装器,通过将每个句子与来自网络的数十亿个相似句子进行比较,根据完整句子的上下文来纠正拼写和语法错误。 安装 将此行添加到您的应用程序的Gemfile中: gem 'gingerice' 然后执行: $ bundle 或自己安装为: $ gem install gingerice 用法 require 'gingerice' text = 'The smelt of fliwers bring back memories.' parser = Gingerice :: Parser . new parser . parse text # output: { "text" => "The smelt of fliwers bring back memories.", "result" => "The smell of flowers brings back memories.", "corrections" => [ [0] {
【文件预览】:
gingerice-master
----.gitignore(154B)
----gingerice.gemspec(1KB)
----bin()
--------gingerice(230B)
----.travis.yml(50B)
----README.md(3KB)
----lib()
--------gingerice()
--------gingerice.rb(27B)
----Gemfile(94B)
----Rakefile(143B)
----test()
--------test_gingerice.rb(5KB)
----.editorconfig(177B)

网友评论