Skip to main content

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}
}

Metadata

Release files for nlpatl 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for nlpatl 0.0.2
File Interpreter ABI Platform Actions
nlpatl-0.0.2-py3-none-any.whl Python 3 none any Details for nlpatl-0.0.2-py3-none-any.whl

Release files / nlpatl-0.0.2-py3-none-any.whl

Download URL nlpatl-0.0.2-py3-none-any.whl
Size 32.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d790ec527886bf0550a0b63e1b358cf795340e4f5c64e5eda4e7e96bc85b3085
BLAKE2b-256 checksum
How to use checksums
4cd72b647cdd7543e6a675111bf4f9f6af11cbf1b0c2df9543e24d377534ae3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.8.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.9.5

Security for nlpatl 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page