Created
April 15, 2018 15:12
-
-
Save tondrej/1e77bee6e8048651e44a2536a04de2b8 to your computer and use it in GitHub Desktop.
FastText C-style API bindings for Delphi and Free Pascal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const | |
FastTextLib = 'fasttext.dll'; | |
type | |
TFastTextNNCallback = function(word: PAnsiChar; score: Single; data: Pointer): LongBool; cdecl; | |
function fasttext_new(out ft: TFastText): LongBool; cdecl; external FastTextLib; | |
function fasttext_release(ft: TFastText): LongBool; cdecl; external FastTextLib; | |
function fasttext_nn2(ft: TFastText; mx: TMatrix; positive, negative: PPAnsiChar; count: Integer; | |
callback: TFastTextNNCallback; data: Pointer): LongBool; cdecl; external FastTextLib; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment