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
                    
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="iSukces.Cli.Punctuate" Version="1.26.713.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="iSukces.Cli.Punctuate" Version="1.26.713.1" />
                    
Directory.Packages.props
<PackageReference Include="iSukces.Cli.Punctuate" />
                    
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 iSukces.Cli.Punctuate --version 1.26.713.1
                    
#r "nuget: iSukces.Cli.Punctuate, 1.26.713.1"
                    
#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 iSukces.Cli.Punctuate@1.26.713.1
                    
#: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=iSukces.Cli.Punctuate&version=1.26.713.1
                    
Install as a Cake Addin
#tool nuget:?package=iSukces.Cli.Punctuate&version=1.26.713.1
                    
Install as a Cake Tool

iSukces.Cli.Punctuate

Polska wersja

NuGet

.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.exe available if the consuming application uses the optional environment-preparation helper
  • Access to the Python packages torch, transformers, and sentencepiece
  • Access to the Hugging Face model kredor/punctuate-all if it is not already available in the local cache

External components and AI models

  • Python, uv, pip, the created venv, PyTorch (torch), Hugging Face Transformers (transformers), SentencePiece (sentencepiece), and the kredor/punctuate-all model 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.
  • PunctuateVenvFactory is 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 start uv, create a virtual environment, and run uv pip install torch transformers sentencepiece as separate operating-system processes.
  • The punctuate_process.py script uses transformers.pipeline and the kredor/punctuate-all model. 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-all model.
  • 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.Punctuate package 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 model kredor/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 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.26.713.1 108 7/13/2026