Skip to main content

Natural language processing active learning library for deep neural networks

Project description

NLPatl (NLP Active Learning)

This python library helps you to perform Active Learning in NLP. NLPatl built on top of transformers, scikit-learn and other machine learning package. It can be applied into both cold start scenario (no any labeled data) and limited labeled data scenario.

The goal of NLPatl is to make use of the state-of-the-art (SOTA) NLP models to estimate the most valueable data and making use of subject matter experts (SMEs) by having them to label limited amount data.


At the beginning, you have unlabeled (and limited labeled data) only. NLPatl apply transfer learning to convert your texts into vectors (or embeddings). After that, vectors go through unsupervised learning or supervised learning to estimate the most uncertainty (or valuable) data. SMEs perform label on it and feedback to models until accumulated enough high quailty data.

Installation

pip install nlpatl

or

pip install git+https://github.com/makcedward/nlpatl.git

Examples

Release

0.0.2, Dec 17, 2021

  • [Completed] Transformers supports Tensorflow
  • [Completed] Performance tuning during clustering
  • [Completed] Support multi-label
  • [Completed] Custom Embeddings, Classification, Clustering, Scoring(Learning) function
  • [Completed] Support TorchVision for image embeddings
  • [Completed] Support SentenceTransformers
  • [Completed] Add Least Confidence Sampling and Most Confidence Sampling
  • [Completed] Add Semi-supervised learning
  • [Completed] Add Farthest (Clustering) Sampling, Mismatch (Uncertainity) Sampling
  • [Completed] Add Mismatch-farthest Learning

Citation

@misc{ma2021nlpatl,
  title={Active Learning for NLP},
  author={Edward Ma},
  howpublished={https://github.com/makcedward/nlpatl},
  year={2021}
}

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

nlpatl-0.0.2-py3-none-any.whl (32.0 kB view hashes)

Uploaded Python 3

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