Socket
Socket
Sign inDemoInstall

essence-nlp

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

essence-nlp

String processing library for advanced NLP and keyword extraction


Maintainers
1

Essence

pypiv pyv Licence Downloads

Essence is string processing library designed for advanced Natural Language Processing (NLP) and Generative AI tasks. Built in Rust, bridged to Python.

Features

  • Error Correction: Enhances text accuracy by correcting spelling and grammatical errors
  • Noise Removal: Eliminates irrelevant information, aiding in cost-effective prompt handling especially when using APIs with usage-based pricing
  • Keyword Extraction: Extracts key terms from prompts facilitating fast searches, database lookups, and other system interactions
  • Prompt Compression: Reduces operational costs in AI-driven platforms by minimizing the text data processed
  • High Performance: Leverages Rust's memory safety and speed for string processing

Installation

Before installing Essence, ensure that you have Rust and Python installed on your system.

  1. Install Rust:

  2. Install Python:

  3. Install Essence via pip:

pip install essence-nlp
# or
pip3 install essence-nlp

Usage

from essence_nlp import processing

sentence = 'Hello i am sogtware engineer, and i designing smart mashine learning system.'

# Example 1: Correcting text
corrected_sentence = processing.corrected(sentence)
print(corrected_sentence)  # Output: 'hello i am software engineer and i'm designing smart machine learning system'

# Example 2: Cleaning text
clean_sentence = processing.cleaned(sentence)
print(clean_sentence)  # Output: 'hello software engineer im designing smart machine learning system'

# Example 3: Extracting keywords
keywords = processing.keywords(sentence)
print(keywords)  # Output: 'im designing smart machine learning system: 36\nsoftware engineer: 4\nhello: 1'

Benchmarks

Coming soon...

Credits

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc