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
742 stars 75 forks source link

Deflate exception for CLD2 language detector #70

Open wis3guy opened 2 years ago

wis3guy commented 2 years ago

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:

stale[bot] commented 2 years ago

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.