Skip to main content

A Light-weight Python NLP Library

Project description

Convex

A Light-weight and Fast Python NLP Library

The plan is to provide light-weight neural models for various downstream NLP tasks such as POS Taggging, Named Entity Recognition, Sentiment Analysis, etc. However, right now POS Tagging is the only task that is supported.

Installation

pip

pip install convex

From Source

git clone https://github.com/nilansaha/convex.git
cd convex
pip install -e .

Usage

The model only needs to be downloaded the first time the tagger is used or after the package is updated

import convex
convex.download() # Download all the necessary models
tagger = convex.PosTagger() # Initialize the Pos Tagging Pipeline
tagger("Let's see how this new tagger works.") # Tag a sentence

Output -

[('Let', 'VERB'), ("'s", 'PRON'), ('see', 'VERB'), ('how', 'ADV'), ('well', 'ADV'), ('this', 'DET'), ('new', 'ADJ'), ('tagger', 'NOUN'), ('works', 'NOUN')]

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

convex-0.0.2-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file convex-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: convex-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for convex-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 86fd445fc44981d4c5055c5faeb63b425cfdfbbe52aba059fd5e1eee442d275c
MD5 7160e863235e9fb636feb44bea7fa3a9
BLAKE2b-256 3a0797deb62ef7a1c980f30f9959754e1a336e3680cbd42654adda69b3eaa203

See more details on using hashes here.

Supported by

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