Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eaigner/shield
Bayesian text classifier with flexible tokenizers and storage backends for Go
https://github.com/eaigner/shield
Last synced: about 2 months ago
JSON representation
Bayesian text classifier with flexible tokenizers and storage backends for Go
- Host: GitHub
- URL: https://github.com/eaigner/shield
- Owner: eaigner
- License: mit
- Created: 2013-04-10T19:38:16.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2020-03-04T03:41:47.000Z (over 4 years ago)
- Last Synced: 2024-01-31T05:15:30.144Z (5 months ago)
- Language: Go
- Homepage:
- Size: 220 KB
- Stars: 155
- Watchers: 12
- Forks: 33
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Lists
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-cobol - shield - Bayesian text classifier with flexible tokenizers and storage backends for Cobol (Machine Learning / Middlewares)
- awesome-go-extra - shield - 04-10T19:38:16Z|2020-03-04T03:41:47Z| (Machine Learning / Advanced Console UIs)
- awesome-go-cn - shield
- awesome-go-zh - shield
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-go - shield - | - | - | (Machine Learning / Advanced Console UIs)
- fucking-awesome-go - :octocat: shield - Bayesian text classifier with flexible tokenizers and storage backends for Go :star: 79 :fork_and_knife: 21 (Machine Learning / Advanced Console UIs)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-go-projects - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Standard CLI)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go (Machine Learning / Advanced Console UIs)
- awesome-go-with-framework - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-go-cn - shield
- zero-alloc-awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go (Machine Learning / Advanced Console UIs)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (<span id="机器学习-machine-learning">机器学习 Machine Learning</span> / <span id="高级控制台用户界面-advanced-console-uis">高级控制台用户界面 Advanced Console UIs</span>)
- awesome-go. - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-go-stars - shield(stars: 156) - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-go-cn - shield - 贝叶斯文吧分类器,包含灵活的分词器和存储后端 (机器学习 / 高级控制台界面)
- awesome-go-with-stars - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- repo-1316-awesome-go-cn - shield
- repo-1211-awesome-go-cn - shield
- awesome-Char - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-reader - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- Go-awesome - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-go-cn - shield
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go (Machine Learning / Advanced Console UIs)
- awesome-go-cn - shield
- awesome-go-handwritten - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-go - shield - 貝葉斯文吧分類器,包含靈活的分詞器和存儲後端 (機器學習 / 高級控制台界面)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go - ★ 118 (Machine Learning)
- awesome-go2 - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. - :arrow_down:1 - :star:83 (Machine Learning / Advanced Console UIs)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go (Machine Learning / Advanced Console UIs)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Advanced Console UIs)
- awesome-go-cn - shield
- awesome-go-zh - shield
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- awesome-go - shield - Bayesian text classifier with flexible tokenizers and storage backends for Go. (Machine Learning / Search and Analytic Databases)
- go-awesome-cn-star - shield
README
Shield is a bayesian text classifier with flexible tokenizer and backend store support
Currently implemented:
- Redis backend
- English tokenizer## Example
```go
package mainimport (
"github.com/eaigner/shield"
)func main() {
sh := shield.New(
shield.NewEnglishTokenizer(),
shield.NewRedisStore("127.0.0.1:6379", "", 0),
)sh.Learn("good", "sunshine drugs love sex lobster sloth")
sh.Learn("bad", "fear death horror government zombie god")c, _ := sh.Classify("sloths are so cute i love them")
if c != "good" {
panic(c)
}c, _ = sh.Classify("i fear god and love the government")
if c != "bad" {
panic(c)
}
}
```