iSukces.Cli.Punctuate
1.26.713.1
dotnet add package iSukces.Cli.Punctuate --version 1.26.713.1
NuGet\Install-Package iSukces.Cli.Punctuate -Version 1.26.713.1
<PackageReference Include="iSukces.Cli.Punctuate" Version="1.26.713.1" />
<PackageVersion Include="iSukces.Cli.Punctuate" Version="1.26.713.1" />
<PackageReference Include="iSukces.Cli.Punctuate" />
paket add iSukces.Cli.Punctuate --version 1.26.713.1
#r "nuget: iSukces.Cli.Punctuate, 1.26.713.1"
#:package iSukces.Cli.Punctuate@1.26.713.1
#addin nuget:?package=iSukces.Cli.Punctuate&version=1.26.713.1
#tool nuget:?package=iSukces.Cli.Punctuate&version=1.26.713.1
iSukces.Cli.Punctuate
.NET library for restoring punctuation and sentence boundaries in text from C# code. The package starts a Python processing script as a separate operating-system process, caches results, and applies final sentence post-processing on the .NET side. Optional helper APIs can prepare a Python environment by orchestrating external tools in the user's operating-system environment.
Requirements
- .NET 10
- Python 3.10.x represented by
PythonVenv uv.exeavailable if the consuming application uses the optional environment-preparation helper- Access to the Python packages
torch,transformers, andsentencepiece - Access to the Hugging Face model
kredor/punctuate-allif it is not already available in the local cache
External components and AI models
- Python,
uv,pip, the createdvenv, PyTorch (torch), Hugging Face Transformers (transformers), SentencePiece (sentencepiece), and thekredor/punctuate-allmodel are external components used outside this package code. - Installing this NuGet package does not install Python packages, create a virtual environment, download models, or install external tools.
PunctuateVenvFactoryis an optional helper that may be called by the consuming application to orchestrate external tools in the user's environment. When explicitly invoked, it may startuv, create a virtual environment, and runuv pip install torch transformers sentencepieceas separate operating-system processes.- The
punctuate_process.pyscript usestransformers.pipelineand thekredor/punctuate-allmodel. Depending on the user's Hugging Face/Transformers configuration, that external runtime may download the model at run time if it is not present in the local cache. - This package does not include, distribute, or license Python, PyTorch, Hugging Face Transformers, SentencePiece, or the
kredor/punctuate-allmodel. - Users are responsible for installing external dependencies and ensuring that their use of selected Python packages, AI models, and generated outputs complies with the applicable licenses and terms.
Integration model
This package acts as a process wrapper. PunctExec writes a temporary Python script and an input file, then starts python.exe through the Cli process execution layer, passing command-line arguments: the script file, the input file, and the output JSON file. The JSON result is read back from disk and post-processed on the .NET side.
This means communication between separate programs through operating-system mechanisms: exec/process launch, command-line arguments, and input/output files. Similarly, when programs communicate through pipes or standard process streams, this is usually communication between separate programs rather than one combined work. This technical summary is not legal advice.
Installation
dotnet add package iSukces.Cli.Punctuate
Usage
var venv = await PunctuateVenvFactory.CreateVenv(workingDirectory);
var sentences = await new PunctExec(venv).Process("this is text without punctuation can it be restored");
Main types
PunctuateVenvFactory
Optional helper that creates and prepares a Python environment by starting external tools in the user's operating-system environment. It may run installation commands for external Python packages, but those packages remain outside this NuGet package.
PunctExec
Runs the Python script as a separate process, splits input text into chunks, persists state and cache, and sends the result to post-processing.
PunctuationPostProcessor
Processes the token-classification result returned by the Python script and reconstructs punctuated sentences.
PunctuateSentencesExtractor
Service adapter that resolves the punctuate environment and returns sentences.
Project configuration
- Target framework:
net10.0 - Package license: MIT for the
iSukces.Cli.Punctuatepackage code only
Dependencies
iSukces.CliTools— base library for running CLI processes and building arguments.iSukces.Cli.Python— Python,venv, and process environment integration.- External components installed or used in the user's environment: Python,
uv,pip,torch,transformers,sentencepiece, and the Hugging Face modelkredor/punctuate-all. - Transitive NuGet dependencies reported by
dotnet list package --include-transitive:Microsoft.SourceLink.GitHub,Microsoft.Build.Tasks.Git,Microsoft.SourceLink.Common,System.IO.Hashing,Newtonsoft.Json,YamlDotNet,iSukces.Translation.
Licenses and responsibility
The MIT license declared by this NuGet package applies to the iSukces.Cli.Punctuate package code, including the C# code and the bundled helper Python script. It does not grant rights to Python, PyTorch, Hugging Face Transformers, SentencePiece, the kredor/punctuate-all model, or any other component installed or downloaded outside this package.
The names Hugging Face, Transformers, PyTorch, Python, and kredor/punctuate-all are used descriptively only to identify compatibility and technical dependencies. This package is not created, sponsored, or endorsed by the authors of those projects or models.
This package is not responsible for licenses, results, failures, environment requirements, resource usage, model downloads, behavior of external components, or damages resulting from the use of external libraries, tools, or AI models.
If a consuming application chooses to call helper methods that start uv, pip, py, Python, or Hugging Face/Transformers code, those processes run in the user's operating-system environment and remain external to this NuGet package. The consuming application and its user are responsible for selecting exact versions, accepting any applicable terms, and verifying licenses of the external packages, tools, models, and downloaded artifacts.
| 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
- iSukces.Cli.Python (>= 1.26.713.1)
- iSukces.CliTools (>= 1.26.713.1)
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.26.713.1 | 108 | 7/13/2026 |