Skip to content

πŸ—šπŸ€ serving fastText model with golang

Notifications You must be signed in to change notification settings

mabdh/go-fasttext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

go-fasttext

Serving fastText model with go

Dependencies

This 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. 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))

About

πŸ—šπŸ€ serving fastText model with golang

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published