RecursiveAI.OneNlp
1.0.0
dotnet add package RecursiveAI.OneNlp --version 1.0.0
NuGet\Install-Package RecursiveAI.OneNlp -Version 1.0.0
<PackageReference Include="RecursiveAI.OneNlp" Version="1.0.0" />
<PackageVersion Include="RecursiveAI.OneNlp" Version="1.0.0" />
<PackageReference Include="RecursiveAI.OneNlp" />
paket add RecursiveAI.OneNlp --version 1.0.0
#r "nuget: RecursiveAI.OneNlp, 1.0.0"
#:package RecursiveAI.OneNlp@1.0.0
#addin nuget:?package=RecursiveAI.OneNlp&version=1.0.0
#tool nuget:?package=RecursiveAI.OneNlp&version=1.0.0
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,TokenandSpan, with character offsets into the string you passed in, and a componentPipelinewith batch and streaming processing.- Tokenizers that match Hugging Face
tokenizersbyte for byte: WordPiece, BPE, byte-level BPE, Unigram/SentencePiece and Tiktoken, loaded fromtokenizer.json, SentencePiece.model,vocab.txtor.tiktokenfiles, 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,PhraseMatcherandEntityRuler. - 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.
- Measured results against the leaders: https://github.com/recursive-ai-oss/onenlp-csharp/blob/main/docs/results-table.md
- Documentation and source: https://github.com/recursive-ai-oss/onenlp-csharp
- Changelog: https://github.com/recursive-ai-oss/onenlp-csharp/blob/main/CHANGELOG.md
- Home: https://recursiveai.org/onenlp/
Licensed MIT OR Apache-2.0. Copyright (c) Recursive AI, LLC.
| Product | Versions 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. |
-
net10.0
- RecursiveAI.OneFont (>= 1.4.0)
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.