Skip to main content

Params, FromParams, Registrable, Lazy classes from AllenNLP

Project description

AllenAI-Common

This repository is a copy-paste of the common components from the 1.1.0 version of AllenNLP library.

The following classes were extracted:

  • FromParams
  • Params
  • Lazy
  • Registrable

And freed from ML/DL/NLP dependencies (e.g. scikit-learn, torch, nltk, spacy, tensorboardX, transformers).

Usage

pip install allenai-common
from allenai_common import Registrable, Params, Lazy, FromParams

# Do something you would normally do when solving NLP tasks using AllenNLP
# But at this time use imported modules for non-NLP tasks

Project details


Download files

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

Source Distribution

allenai-common-1.1.2.tar.gz (29.1 kB view hashes)

Uploaded Source

Built Distribution

allenai_common-1.1.2-py3-none-any.whl (32.4 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