RecursiveAI.OneNlp 1.0.0

dotnet add package RecursiveAI.OneNlp --version 1.0.0
                    
NuGet\Install-Package RecursiveAI.OneNlp -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="RecursiveAI.OneNlp" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="RecursiveAI.OneNlp" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="RecursiveAI.OneNlp" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add RecursiveAI.OneNlp --version 1.0.0
                    
#r "nuget: RecursiveAI.OneNlp, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package RecursiveAI.OneNlp@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=RecursiveAI.OneNlp&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=RecursiveAI.OneNlp&version=1.0.0
                    
Install as a Cake Tool

RecursiveAI.OneNLP

spaCy-class NLP for .NET. The model-free core of OneNLP: a clean-room library for .NET 10 with no native code, NativeAOT and trim clean. Unaffiliated with other projects named OneNLP.

It holds everything that needs no trained model:

  • Doc, Token and Span, with character offsets into the string you passed in, and a component Pipeline with batch and streaming processing.
  • Tokenizers that match Hugging Face tokenizers byte for byte: WordPiece, BPE, byte-level BPE, Unigram/SentencePiece and Tiktoken, loaded from tokenizer.json, SentencePiece .model, vocab.txt or .tiktoken files, with normalizers, pre-tokenizers, post-processors, padding, truncation, special tokens and count/trim-to-budget helpers, in the BCL span style.
  • UAX #29 word and sentence segmentation, Matcher, PhraseMatcher and EntityRuler.
  • Recognizers that resolve numbers, ordinals, percentages, units, currency, e-mail, URL, IP, phone-like sequences, hashtags, mentions, GUIDs, dates, times, ranges, durations and recurrences to values, in English, French, German, Spanish, Portuguese, Italian, Dutch, Turkish, Hindi and Chinese. The rules are data, per language.
  • Language identification for 75 languages in a 3.6 MB model, with per-word-run mixed-language spans.
  • JSON and binary serialization of documents.
using RecursiveAI.OneNlp;

string text = "Angela Merkel met Emmanuel Macron in Paris on 5 March 2026. The deal cost $5m.";

Language language = Nlp.DetectLanguage(text);                       // Language.English
DateTimeOffset today = new(2026, 3, 18, 10, 30, 0, TimeSpan.Zero);
DateRange? when = Nlp.ParseDate("the first Monday after Easter 2027", today);
IEnumerable<Quantity> money = Nlp.Quantities(text);                 // 5000000 USD

Tokenizer tokenizer = Tokenizer.FromFile("tokenizer.json");         // a Hugging Face tokenizer.json
int tokens = tokenizer.CountTokens("How long is this text, in tokens?");

Tagging, lemmas, parses and entities need a model: add RecursiveAI.OneNlp.Neural and a model package such as RecursiveAI.OneNlp.Models.English. Without one, Nlp.Entities throws an exception that names the package to add; nothing is downloaded.

The package depends on the .NET base class library and RecursiveAI.OneFont only.

Licensed MIT OR Apache-2.0. Copyright (c) Recursive AI, LLC.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on RecursiveAI.OneNlp:

Package Downloads
RecursiveAI.OneNlp.Neural

spaCy-class NLP for .NET: the neural layer on OneModel. Fast and transformer encoders, tagger, morphologizer, lemmatizer, dependency parser, entity recognizer, text classifier and span categorizer, Train for training and fine-tuning in C#, saved pipelines and sentence embeddings. Unaffiliated with other projects named OneNLP.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 0 11/8/2026

See CHANGELOG.md in the repository.