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

README sample does not work #64

Closed ashahabov closed 3 years ago

ashahabov commented 3 years ago

Sample from "Getting Started" section throws "System.IO.FileNotFoundException: 'Unable to find the specified file.'"

image

Adding Catalyst.Models.English.Register(); at the beginning helps:

Catalyst.Models.English.Register();

Storage.Current = new DiskStorage("catalyst-models");
var nlp = await Pipeline.ForAsync(Language.English);
var doc = new Document("The quick brown fox jumps over the lazy dog", Language.English);
nlp.ProcessSingle(doc);

Console.WriteLine(doc.ToJson());