No description
Find a file
Ganesh Viswanathan f773233743 Upstream works
2019-03-06 00:30:27 -06:00
tests Fixes for fastText #head, stick to 0.2.0 since head is broken 2019-03-06 00:26:22 -06:00
.gitignore Initial version 2018-09-26 14:25:36 -05:00
LICENSE Initial version 2018-09-26 14:25:36 -05:00
nimfastText.cfg Upstream works 2019-03-06 00:30:27 -06:00
nimfastText.nimble Version bump 2019-03-06 00:27:23 -06:00
README.md No support for gcc < 5.x 2018-11-04 14:59:43 -06:00

NimfastText is a Nim wrapper for the fastText library.

NimfastText is distributed as a Nimble package and depends on nimgen and c2nim to generate the wrappers. The fastText source code is downloaded using Git so having git in the path is required.

Installation

NimfastText can be installed via Nimble:

> nimble install nimgen

> nimble install https://github.com/genotrance/nimfastText

This will download, wrap and install nimfastText in the standard Nimble package location, typically ~/.nimble. Once installed, it can be imported into any Nim program.

NimfastText is not supported on gcc < 5.x. PRs enabling support are welcome. See here for details.

Usage

Module documentation can be found here.

import nimfastText/fasttext

var ft: FastText

Refer to the tests directory for examples on how the library can be used.

Credits

NimfastText wraps the fastText source code and all licensing terms of fastText apply to the usage of this package.

Credits go out to c2nim as well without which this package would be greatly limited in its abilities.

Feedback

NimfastText is a work in progress and any feedback or suggestions are welcome. It is hosted on GitHub with an MIT license so issues, forks and PRs are most appreciated.