LMSupply.Text.Core
0.8.2
See the version list below for details.
dotnet add package LMSupply.Text.Core --version 0.8.2
NuGet\Install-Package LMSupply.Text.Core -Version 0.8.2
<PackageReference Include="LMSupply.Text.Core" Version="0.8.2" />
<PackageVersion Include="LMSupply.Text.Core" Version="0.8.2" />
<PackageReference Include="LMSupply.Text.Core" />
paket add LMSupply.Text.Core --version 0.8.2
#r "nuget: LMSupply.Text.Core, 0.8.2"
#:package LMSupply.Text.Core@0.8.2
#addin nuget:?package=LMSupply.Text.Core&version=0.8.2
#tool nuget:?package=LMSupply.Text.Core&version=0.8.2
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 | 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
- LMSupply.Core (>= 0.8.2)
- Microsoft.ML.Tokenizers (>= 2.0.0)
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 |