curiosity-ai / catalyst

🚀 Catalyst is a C# Natural Language Processing library built for speed. Inspired by spaCy's design, it brings pre-trained models, out-of-the box support for training word and document embeddings, and flexible entity recognition models.
MIT License
699 stars 71 forks source link

System.IO.FileNotFoundException: 'Unable to find the specified file.' #79

Closed xbaha closed 1 year ago

xbaha commented 1 year ago

Fast Text Language Detector models are not found and not downloaded, It throws the error

Catalyst.Models.English.Register();
Storage.Current = new DiskStorage("catalyst-models");
--> var fastTextLanguageDetector = await FastTextLanguageDetector.FromStoreAsync(Mosaik.Core.Language.Any, Mosaik.Core.Version.Latest, "");

It's not clear if I need to download the trained data or if it's automatically downloaded.

dylanvdmerwe commented 1 year ago

What is the answer to this as I have the same issue?

synntek0xe9 commented 1 year ago

You need to istall Mosaik.Core. Unfortunetly authors did not mention that this is required for lib to work (currently). Then ofc add "using Mosaik.Core;"

acuencadev commented 8 months ago

I added a reference to Mosaik.Core as advised by @adriankozakiewicz and this is failing. Is there any other fix for this?

I am using .Net 8 and the following Packages:

<PackageReference Include="Catalyst" Version="1.0.40904" />
<PackageReference Include="Catalyst.Models.English" Version="1.0.30952" />
<PackageReference Include="Catalyst.Models.French" Version="1.0.30952" />
<PackageReference Include="Catalyst.Models.Japanese" Version="1.0.30952" />
<PackageReference Include="Mosaik.Core" Version="0.0.43755" />