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
715 stars 73 forks source link

How to use pretrained model from disk #19

Closed inventivejon closed 5 years ago

inventivejon commented 5 years ago

Lazy load auto-download is a nice feature but actually takes too long if I want to quickly execute a program with NLP Feature from catalyst over a small text. Is there any chance to download the pretrained model and load it upfront in the program (talking about maximum time one second?)

inventivejon commented 5 years ago

Never mind. Got it now. Your example code actually writes it to disc. Which means after first execution I actually need to use it from there.