UNPKG

llmtrim

Version:

A library for trimming tokens in encoding and decoding in LLM applications.

32 lines (21 loc) 2.06 kB
# Release Note v1.1.0 - June 9, 2025 ### feat: Add MIT License to the project ![impact](https://img.shields.io/badge/impact-medium-yellow?style=flat-square) - **Author:** [vincenzo.manto](https://github.com/vincenzo.manto) ![Author Image](https://avatars.githubusercontent.com/vincenzo.manto?size=40) - **Date:** Mon Jun 9 14:37:05 2025 +0200 - **Files Modified:** 4 ### fix: Correct package name in package-lock.json and add light-release dependency ![impact](https://img.shields.io/badge/impact-medium-yellow?style=flat-square) - **Author:** [vincenzo.manto](https://github.com/vincenzo.manto) ![Author Image](https://avatars.githubusercontent.com/vincenzo.manto?size=40) - **Date:** Mon Jun 9 14:36:20 2025 +0200 - **Files Modified:** 5 ### fix: Update README badges formatting and adjust token reduction value ![impact](https://img.shields.io/badge/impact-medium-yellow?style=flat-square) - **Author:** [vincenzo.manto](https://github.com/vincenzo.manto) ![Author Image](https://avatars.githubusercontent.com/vincenzo.manto?size=40) - **Date:** Mon Jun 9 14:36:03 2025 +0200 - **Files Modified:** 5 ### feat: Initialize LLMTrim library with Encoder and Decoder classes- Added package.json with project metadata and dependencies. - Implemented Encoder class for text processing, including methods to trim text by removing stopwords, punctuation, and applying stemming. - Implemented Decoder class for detrimming text with options for stemming, language, and stopword removal. - Created tests for Encoder functionality to ensure compression and trimming accuracy. - Added i18n support for negation words and articles/prepositions in multiple languages. - Configured TypeScript with tsconfig.json for strict type checking and output directory. ![impact](https://img.shields.io/badge/impact-high-red?style=flat-square) - **Author:** [vincenzo.manto](https://github.com/vincenzo.manto) ![Author Image](https://avatars.githubusercontent.com/vincenzo.manto?size=40) - **Date:** Mon Jun 9 14:35:22 2025 +0200 - **Files Modified:** 14