Skip to main content

A collection of Natural Language Processing tools to make your life easier.

Project description

NLP Engine

nlpengine is a collection of Natural Language Processing functions. Its designed to make a NLP engineer's life easier by bundling some of the everyday tasks like data cleaning, feature extraction, text classification, etc. This module is built on top of other popular open source python libraries.

Installation

pip install nlpengine

Features

The key featues in the initial release of nlpengine includes:

  • Easy to use text classifiers
  • Vectorization of texts
  • Active Learning (in development)
  • Several utility functions

Text Classifier

A wrapper on top of Facebook's FastText text classifier to build a text classifier with just few lines of codes.

texts = ["sample sentence one", "just another sentence!", "is this a sentence?"]
labels = ["not question", "not question", "question"]

from nlpengine.classifiers import FastTextClassifier
clf = FastTextClassifier()
model = clf.fit(text, labels)

Convert texts to vectors

This module helps convert a corpus of texts to a vector matrix easily. This extracted matrix could be used for further downstream tasks such as text similiarity, vector decomposition & visualization, etc.

from nlpengine.feature_extraction import def get_glove_embeddings_from_sentences
texts = ["a great sentence", "and a meaningful one"]
vectors = get_glove_embeddings_from_sentences(texts, download_model=True)

=======
History
=======

0.0.1 (2021-05-22)
------------------

* First release on PyPI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nlpengine-0.0.2.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nlpengine-0.0.2-py2.py3-none-any.whl (8.2 kB view details)

Uploaded Python 2Python 3

File details

Details for the file nlpengine-0.0.2.tar.gz.

File metadata

  • Download URL: nlpengine-0.0.2.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for nlpengine-0.0.2.tar.gz
Algorithm Hash digest
SHA256 9a08a46a90fe98c50d92bc7f75d7ddcd3ccb4b396fbe96cdd2ae5de26d222822
MD5 b5c5c352801b4427a1d753cebe7b3a27
BLAKE2b-256 a825757fd5196d268a87269381850491331030325b7cf9685c2e76352d1b0981

See more details on using hashes here.

File details

Details for the file nlpengine-0.0.2-py2.py3-none-any.whl.

File metadata

  • Download URL: nlpengine-0.0.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.5

File hashes

Hashes for nlpengine-0.0.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 c507755ed7ae67f8eda32f2ae3d63a859a833ac6ba5709646be5026b1b3785d7
MD5 fd8aba299bb62f79d8af81fb371fb653
BLAKE2b-256 acd31beb0225b9fddc066805934b8f45a3f91f34af536b03a822ee67944f2888

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page