RecursiveAI.OneNlp.Models.Chinese 1.0.0

dotnet add package RecursiveAI.OneNlp.Models.Chinese --version 1.0.0
                    
NuGet\Install-Package RecursiveAI.OneNlp.Models.Chinese -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.Models.Chinese" 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.Models.Chinese" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="RecursiveAI.OneNlp.Models.Chinese" />
                    
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.Models.Chinese --version 1.0.0
                    
#r "nuget: RecursiveAI.OneNlp.Models.Chinese, 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.Models.Chinese@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.Models.Chinese&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=RecursiveAI.OneNlp.Models.Chinese&version=1.0.0
                    
Install as a Cake Tool

RecursiveAI.OneNLP.Models.Chinese

spaCy-class NLP for .NET. The Chinese fast-tier model for RecursiveAI.OneNlp: add this package and the Nlp verbs analyze Chinese text (Simplified script) with word segmentation, tags, morphology, lemmas, a dependency parse and named entities. No downloads, no native code, NativeAOT and trim clean. Unaffiliated with other projects named OneNLP.

Measured. UD Chinese-GSDSimp r2.18 test (and UNER Chinese-GSDSIMP test for entities); the reference is spaCy trained on gold words (gold_preproc) for gold rows, against spaCy 3.8.18 trained with its default configuration on the same data (95% paired bootstrap intervals are in the results table). Gold words: UPOS 90.41 against 90.35, UFeats 98.38 against 98.43, lemmas 99.87 against 99.91, LAS 67.49 against 68.24 and MLAS 55.78 against 58.87 (all within noise). Raw text: words 89.62 against 39.43, UPOS 81.90 against 34.92 and LAS 56.93 against 8.59 (ahead; spaCy's default Chinese tokenizer cuts single characters). Entities micro F1 63.79 against 61.86 (within noise). Entity precision is 69.28 against 67.08 and recall 59.11 against 57.40 (both within noise). Raw character-span entity F1 is 53.71; no comparable raw spaCy row is available. Data lineage: UD Chinese-GSDSimp and UNER Chinese-GSDSIMP (CC BY-SA 4.0); the weights carry share-alike lineage where the data does. Size: 162.9 MiB of weights. Speed against the managed reference is measured at the release gate.

using RecursiveAI.OneNlp;

Doc doc = Nlp.Analyze("李明在北京大学学习计算机科学。他明天去上海。");
foreach (Token t in doc)
{
    Console.WriteLine($"{t} {t.Pos} {t.Lemma} {t.Dep}");
}

foreach (Span e in Nlp.Entities("李明在北京大学学习。"))
{
    Console.WriteLine($"{e.Label} {e}");
}

Chinese is written without spaces, so the tokens are words cut by a trained segmenter (a character tagger, NeuralWordSegmenter), not by Unicode word rules; offsets are into your original string. The segmentation is the Universal Dependencies one (UD Chinese-GSDSimp), so "北京大学" may be one word or two as that treebank writes it.

The package adds a small source file to the project that references it; that file registers the model when the program starts. Programs that cannot compile it call ChineseModel.Register() once.

The weights are trained on Universal Dependencies Chinese-GSDSimp (CC BY-SA 4.0) and Universal NER Chinese-GSDSIMP (CC BY-SA 4.0), credited in THIRD-PARTY-NOTICES.md; PROVENANCE.md lists every dataset, recipe and seed. The weights are licensed MIT OR Apache-2.0. The training text is Simplified-script; Traditional-script text is segmented and tagged with lower accuracy.

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

This package is not used by any NuGet packages.

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.