catalyst icon indicating copy to clipboard operation
catalyst copied to clipboard

Deflate exception for CLD2 language detector

Open wis3guy opened this issue 3 years ago • 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

wis3guy avatar Mar 24 '22 09:03 wis3guy

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.

stale[bot] avatar Jul 10 '22 16:07 stale[bot]