FastText.NetWrapper icon indicating copy to clipboard operation
FastText.NetWrapper copied to clipboard

Unable to find an entry point named 'CreateFastText' in shared library 'fasttext'.

Open alperenaydinn opened this issue 11 months ago • 2 comments

Hello, I am trying to use the FastText.NetWrapper library on Mac. I saved the FastText file to usr/local/bin. I directly cloned the FastText.NetWrapper files via Github and tried to try it via console, but I got the following error:

Unhandled exception. System.EntryPointNotFoundException: Unable to find an entry point named 'CreateFastText' in shared library 'fasttext'.

If anyone has an idea that can help I would be very grateful.

alperenaydinn avatar Mar 17 '24 17:03 alperenaydinn

Hi! This library is designed to be completely self-reliant, and doesn't require manual dependency installation. It also uses forked fastText binary in order to communicate with .NET code, which is bundled with the base Nuget package. Try deleting the fastText binary you saved to usr/local/bin, since it might interfere with the custom binary.

olegtarasov avatar Mar 18 '24 16:03 olegtarasov

Sorry, didn't notice that you are building the wrapper from source. You didn't specify what fastText binary you are using, so make sure you use my fork, the c_api branch: https://github.com/olegtarasov/fastText.

olegtarasov avatar Mar 18 '24 18:03 olegtarasov