Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FastTextLanguageDetector: What Storage does it expect? #88

Open
schittli opened this issue Jan 22, 2023 · 0 comments
Open

FastTextLanguageDetector: What Storage does it expect? #88

schittli opened this issue Jan 22, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@schittli
Copy link

Hello

I chose "Bug report" related to your description: "Create a report to help us improve"

Describe the bug
If I try to get samples/LanguageDetection/Program.cs running, then:

  • the cld2LanguageDetector perfectly works 😀,
  • the FastTextLanguageDetector throws an exception without offering useful information 😞, it just says:
    System.IO.FileNotFoundException: Unable to find the specified file.
    (Of course, it should tell the path to the file which can not be found)

I have this situation:

  1. I have downloaded the NuGet Language Model: Catalyst.Models.English
  2. The English language Model is here: C:\Catalyst\LanguageModels\Catalyst.Models.English.dll
  3. I set the DiskStorage and call FastTextLanguageDetector:
    Storage.Current = new DiskStorage(@"C:\Catalyst\LanguageModels");
    var fastTextLanguageDetector = await FastTextLanguageDetector.FromStoreAsync(Language.Any, Version.Latest, "");
    

Why is FastTextLanguageDetector not able to find the Language model?

Thanks a lot, kind regards,
Thomas

@schittli schittli added the bug Something isn't working label Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant