A Light-weight Python NLP Library
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.
pip install convex
git clone https://github.com/nilansaha/convex.git cd convex pip install -e .
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
[('Let', 'VERB'), ("'s", 'PRON'), ('see', 'VERB'), ('how', 'ADV'), ('well', 'ADV'), ('this', 'DET'), ('new', 'ADJ'), ('tagger', 'NOUN'), ('works', 'NOUN')]
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.