https://github.com/mabdh/go-fasttext
🗚🐀 serving fastText model with golang
https://github.com/mabdh/go-fasttext
fasttext golang nlp textclassification
Last synced: 2 months ago
JSON representation
🗚🐀 serving fastText model with golang
- Host: GitHub
- URL: https://github.com/mabdh/go-fasttext
- Owner: mabdh
- Created: 2020-10-21T14:56:52.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-08-18T13:08:41.000Z (about 2 years ago)
- Last Synced: 2025-07-10T13:33:02.234Z (3 months ago)
- Topics: fasttext, golang, nlp, textclassification
- Language: Go
- Homepage:
- Size: 1.12 MB
- Stars: 7
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-fasttext
Serving [fastText](https://github.com/facebookresearch/fastText) model with go
## Dependencies
- [fastText](https://github.com/facebookresearch/fastText)
- cmakeThis version still have dependency to libfasttext shared & static libraries and need to be located somewhere in the system in LD_LIBRARY_PATH (usually in /usr/local/lib)
- Install fastText with [cmake](https://github.com/facebookresearch/fastText#building-fasttext-using-cmake). This will install dependencies to your system.
## The Usage
The use of this library is as easy as loading the model and call `Predict` function. Result will be a list of struct of label and probabilities.
```
m, err := New("dbpedia.ftz")
result := m.Predict("this is testing", 5, float32(0.01))
```