LMSupply.Text.Core 0.7.3

There is a newer version of this package available.
See the version list below for details.
dotnet add package LMSupply.Text.Core --version 0.7.3
                    
NuGet\Install-Package LMSupply.Text.Core -Version 0.7.3
                    
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="LMSupply.Text.Core" Version="0.7.3" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LMSupply.Text.Core" Version="0.7.3" />
                    
Directory.Packages.props
<PackageReference Include="LMSupply.Text.Core" />
                    
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 LMSupply.Text.Core --version 0.7.3
                    
#r "nuget: LMSupply.Text.Core, 0.7.3"
                    
#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 LMSupply.Text.Core@0.7.3
                    
#: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=LMSupply.Text.Core&version=0.7.3
                    
Install as a Cake Addin
#tool nuget:?package=LMSupply.Text.Core&version=0.7.3
                    
Install as a Cake Tool

LMSupply.Text.Core

Core text processing infrastructure for LMSupply packages.

Overview

This package provides centralized tokenization and text processing utilities used by LMSupply packages that work with text data (Embedder, Reranker, Translator, etc.).

Features

  • Tokenizer Factory: Creates tokenizers from model directories
  • Multiple Tokenizer Types: WordPiece, BPE, SentencePiece support
  • Vocabulary Loading: JSON and TXT format support
  • Batch Encoding: Efficient batch processing with padding

Usage

This is an infrastructure package typically used internally by other LMSupply packages.

using LMSupply.Text;

// Create a tokenizer from model directory
var tokenizer = TokenizerFactory.CreateFromModelDirectory(modelPath);

// Encode text
var encoded = tokenizer.Encode("Hello, world!");
Console.WriteLine($"Tokens: {encoded.InputIds.Length}");

// Decode tokens
var decoded = tokenizer.Decode(encoded.InputIds, skipSpecialTokens: true);

Supported Tokenizers

Type Format Models
WordPiece tokenizer.json, vocab.txt BERT, BGE
BPE tokenizer.json, vocab.json GPT-2, RoBERTa
SentencePiece tokenizer.model XLM-R, mBART
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 (5)

Showing the top 5 NuGet packages that depend on LMSupply.Text.Core:

Package Downloads
LMSupply.Embedder

A simple .NET library for local text embeddings with automatic model downloading from HuggingFace. Supports CUDA, DirectML, and CoreML GPU acceleration.

LMSupply.Captioner

A simple .NET library for local image captioning with automatic model downloading from HuggingFace. Supports CUDA, DirectML, and CoreML GPU acceleration.

LMSupply.Reranker

A lightweight, zero-configuration semantic reranker for .NET. Supports multiple cross-encoder models with automatic download, GPU acceleration, and HuggingFace caching.

LMSupply.Translator

A lightweight, zero-configuration neural machine translator for .NET. Supports OPUS-MT models for high-quality bilingual translation. Start small. Download what you need. Run locally.

LMSupply.ImageGenerator

A simple .NET library for local text-to-image generation using Latent Consistency Models (LCM). Supports CUDA, DirectML, and CoreML GPU acceleration with 2-4 step fast inference.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.10.0 45 1/22/2026
0.9.3 179 1/19/2026
0.9.2 128 1/19/2026
0.9.1 125 1/18/2026
0.9.0 119 1/18/2026
0.8.18 115 1/18/2026
0.8.17 117 1/17/2026
0.8.16 118 1/15/2026
0.8.15 118 1/13/2026
0.8.14 113 1/12/2026
0.8.13 119 1/10/2026
0.8.12 123 1/9/2026
0.8.11 118 1/9/2026
0.8.10 197 1/8/2026
0.8.9 120 1/8/2026
0.8.8 124 1/8/2026
0.8.7 123 1/8/2026
0.8.6 119 1/8/2026
0.8.5 118 1/7/2026
0.8.4 111 1/7/2026
0.8.3 559 12/22/2025
0.8.2 168 12/20/2025
0.8.1 269 12/19/2025
0.8.0 290 12/17/2025
0.7.3 292 12/17/2025
0.7.2 610 12/17/2025