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
Release history Release notifications | RSS feed
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.1.tar.gz
(28.9 kB
view hashes)
Built Distribution
Close
Hashes for allenai_common-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c73b1aa696098dc8354d26f52d9709d15ffca2a2229f9a730bc8cf671c24f10 |
|
MD5 | 83e926859f6a49c45efc161786afc231 |
|
BLAKE2b-256 | 544f49cc8ea6cb8d9b71deb496399ab1d7aaffe3bae037940c9b8fbfb292e2e3 |