【文件属性】:
文件名称:informers:Ruby的最新自然语言处理
文件大小:785KB
文件格式:ZIP
更新时间:2021-03-18 14:09:38
sentiment-analysis named-entity-recognition question-answering Ruby
告密者
:slightly_smiling_face: Ruby的最新自然语言处理
支持:
情绪分析
问题回答
命名实体识别
文本生成-开发中
总结-开发中
翻译-开发中
安装
将此行添加到您的应用程序的Gemfile中:
gem 'informers'
入门
情绪分析
首先,下载。
预测情绪
model = Informers :: SentimentAnalysis . new ( "sentiment-analysis.onnx" )
model . predict ( "This is super cool" )
这返回
{ label : "positive" , score : 0.999855186578301 }
一次预测多个
model . predict ( [ "This is super cool" , "I didn't like it" ] )
问题回答
首先,下载经过,并将Numo添加到应用程序的G
【文件预览】:
informers-master
----informers.gemspec(632B)
----vendor()
--------bert_base_cased_tok.bin(3.05MB)
--------LICENSE-blingfire.txt(1KB)
--------bert_base_tok.bin(4.04MB)
--------LICENSE-bert.txt(11KB)
----tools()
--------generate_question_answering.py(323B)
--------generate_ner.py(304B)
--------generate_sentiment_analysis.py(333B)
--------export.md(217B)
--------requirements.txt(36B)
--------generate_feature_extraction.py(307B)
----Rakefile(156B)
----.github()
--------workflows()
----test()
--------feature_extraction_test.rb(546B)
--------question_answering_test.rb(1KB)
--------test_helper.rb(181B)
--------ner_test.rb(1KB)
--------sentiment_analysis_test.rb(689B)
----Gemfile(92B)
----.gitignore(80B)
----CHANGELOG.md(156B)
----lib()
--------informers.rb(237B)
--------informers()
----README.md(4KB)
----LICENSE.txt(11KB)