【文件属性】:
文件名称:blingfire:Ruby的高速文本标记化
文件大小:11KB
文件格式:ZIP
更新时间:2021-05-05 16:03:44
Ruby
金光闪闪
高速文本标记化-适用于Ruby
安装
将此行添加到应用程序的Gemfile中:
gem 'blingfire'
入门
建立模型
model = BlingFire :: Model . new
标记词
model . text_to_words ( text )
标记句子
model . text_to_sentences ( text )
获取单词的偏移量
words , start_offsets , end_offsets = model . text_to_words_with_offsets ( text )
获取句子的偏移量
sentences , start_offsets , end_offsets = model . text_to_sentences_with_offsets ( text )
预训练模型
Bling Fire带有一个默认模型,该模型
【文件预览】:
blingfire-master
----vendor()
--------LICENSE(1KB)
----Rakefile(2KB)
----.github()
--------workflows()
----test()
--------model_test.rb(5KB)
--------test_helper.rb(102B)
----Gemfile(39B)
----blingfire.gemspec(665B)
----.gitignore(105B)
----CHANGELOG.md(535B)
----lib()
--------blingfire.rb(6KB)
--------blingfire()
----README.md(3KB)
----LICENSE.txt(1KB)