RecursiveAI.OneNlp.Models.Portuguese 1.0.0

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

RecursiveAI.OneNLP.Models.Portuguese

spaCy-class NLP for .NET. The Portuguese fast-tier model for RecursiveAI.OneNlp: add this package and the Nlp verbs analyze Portuguese text with 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 Portuguese-Bosque r2.18 test (and UNER Portuguese-Bosque test for entities), 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 95.89 against 95.92, UFeats 94.51 against 94.11, lemmas 97.30 against 96.90 and LAS 81.80 against 81.96 (all within noise). Raw text: UPOS 95.35 against 84.15 and LAS 81.14 against 65.85 (ahead). Entities micro F1 73.48 against 75.27 (within noise). Entity precision is 75.46 against 76.96 (paired -1.50 [-3.76, 0.83], within noise). Data lineage: UD Portuguese-Bosque and UNER Portuguese-Bosque (CC BY-SA 4.0); the weights carry share-alike lineage where the data does. Size: 104.8 MiB of weights. Speed against the managed reference is measured at the release gate.

using RecursiveAI.OneNlp;

Doc doc = Nlp.Analyze("Maria Silva visitou a cidade de Lisboa em maio.");
foreach (Token t in doc)
{
    Console.WriteLine($"{t} {t.Pos} {t.Lemma} {t.Dep}");
}

foreach (Span e in Nlp.Entities("Maria Silva mora em Lisboa."))
{
    Console.WriteLine($"{e.Label} {e}");
}

Tokens follow Universal Dependencies Portuguese-Bosque. A contraction of a preposition with an article or pronoun (do, na, pelo, nesse) is two tokens, because the treebank writes it as a multiword token of two words: do is the tokens d and o (the words de o). A pronoun after a verb is its own token with its hyphen: trata-se is trata and -se. à is one token (the words a a). Bosque has no XPOS column, so Token.Tag is empty; Pos and Morph come from the morphologizer.

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 PortugueseModel.Register() once.

The weights are trained on Universal Dependencies Portuguese-Bosque and Universal NER Portuguese-Bosque (both 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.

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 145 11/8/2026

See CHANGELOG.md in the repository.