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.2.tar.gz
(29.1 kB
view hashes)
Built Distribution
Close
Hashes for allenai_common-1.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 112559f6bc5a53d65f333cb3fb9748bb053c22241572ae177fd685520cce080a |
|
MD5 | 6cde20b7eb9c7469d3e70a67dfcf94ca |
|
BLAKE2b-256 | a1a37201ed8a8d539b4b9d84508c3769dcff38eb62a755552d5653ade0d9e4fd |