Skip to content

A simple Golang wrapper for fastText text classification library

License

Notifications You must be signed in to change notification settings

taufik-rama/fasttext-go-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastText Golang Wrapper

Overview

Here's my attempt at wrapping FastText C++ library with Golang CGO.

Requirements

Compiling

  • Clone the FastText git repository & compile it.

    $ git clone https://github.com/facebookresearch/fastText
    # Cloning...
    
    $ cd fastText && make
    # Compiling...
  • Clone this repository & copy all the .o from previous compile result into directory inside fastText/obj.

    $ git clone https://github.com/taufik-rama/fasttext-go-wrapper
    # Cloning...
    
    $ mkdir fastText/obj
    
    $ cp /path/to/previous/repo/*.o fastText/obj/
  • Compile the C project

    $ cd fastText && make
    # Compiling...
  • Build the Go package normally

    $ go build
    # Compiling...

About

A simple Golang wrapper for fastText text classification library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published