Skip to content

Convex is a tool for doing various Natural Language Processing tasks

License

Notifications You must be signed in to change notification settings

nilansaha/convex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 check out this new tagger") # Tag a sentence

Output -

[('Let', 'VERB'), ("'s", 'PRON'), ('check', 'VERB'), ('out', 'ADP'), ('this', 'DET'), ('new', 'ADJ'), ('tagger', 'NOUN')]

About

Convex is a tool for doing various Natural Language Processing tasks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages