curiosity-ai/catalyst

Deflate exception for CLD2 language detector

wis3guy opened this issue · 1 comments

Describe the bug
When attempting to do language detection using the `` class, it fails to load the model from the embedded resource. The exception throws with the following message: The archive entry was compressed using an unsupported compression method.

To Reproduce
Just execute the below lines of code:

Catalyst.Models.English.Register();
var cld2LanguageDetector = await LanguageDetector.FromStoreAsync(Language.Any, Version.Latest, "");

Expected behavior
The resource would be deflated as expected and the langauge detector would simply work as advertised..

Screenshots
Using Rider, I debugged into the failing method:
image

Additional context
Tested with:

  • netcoreapp3.1
  • class library (Azure Functions project)
  • C# 8
stale commented

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.