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
<PackageReference Include="RecursiveAI.OneNlp.Models.Chinese" Version="1.0.0" />
<PackageVersion Include="RecursiveAI.OneNlp.Models.Chinese" Version="1.0.0" />
<PackageReference Include="RecursiveAI.OneNlp.Models.Chinese" />
paket add RecursiveAI.OneNlp.Models.Chinese --version 1.0.0
#r "nuget: RecursiveAI.OneNlp.Models.Chinese, 1.0.0"
#:package RecursiveAI.OneNlp.Models.Chinese@1.0.0
#addin nuget:?package=RecursiveAI.OneNlp.Models.Chinese&version=1.0.0
#tool nuget:?package=RecursiveAI.OneNlp.Models.Chinese&version=1.0.0
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.
- Measured results against spaCy and others: https://github.com/recursive-ai-oss/onenlp-csharp/blob/main/docs/results-table.md
- Source and documentation: https://github.com/recursive-ai-oss/onenlp-csharp
- Home: https://recursiveai.org/onenlp/
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.OneNlp.Neural (>= 1.0.0)
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.