README sample does not work
Closed this issue · 0 comments
ashahabov commented
Sample from "Getting Started" section throws "System.IO.FileNotFoundException: 'Unable to find the specified file.'"
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());