allenai-common

Params, FromParams, Registrable, Lazy classes from AllenNLP


Keywords
registry
License
Apache-2.0
Install
pip install allenai-common==1.1.2

Documentation

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