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
699 stars 71 forks source link

The type or namespace name 'English' does not exist in the namespace 'Catalyst.Models' (are you missing an assembly reference?)CS0234 #106

Closed MattFinlay closed 6 months ago

MattFinlay commented 6 months ago

Describe the bug Created a C# ConsoleApp in visual studio code. Was following the provided examples. VS code is reporting "The type or namespace name 'English' does not exist in the namespace 'Catalyst.Models' (are you missing an assembly reference?)CS0234:".

To Reproduce

  1. open a new folder in VS code:
  2. view terminal
  3. dotnet new console --framework net8.0 --use-program-main
  4. dotnet add package Catalyst
  5. Add "using Catalyst; using Catalyst.Models;"
  6. Copy line from documentation "Catalyst.Models.English.Register(); //You need to pre-register each language (and install the respective NuGet Packages) " Expected behavior no errors

Screenshots

Screen Shot 2024-01-27 at 8 49 10 pm

Additional context the rest of the package seems to compile ok but it seems line i need to Pre-Register the English Language before i can start.

MattFinlay commented 6 months ago

Sorry i missed the section on installing the English models.