Skip to content

Params, FromParams, Registrable, Lazy classes from AllenNLP

License

Notifications You must be signed in to change notification settings

fursovia/allenai-common

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Params, FromParams, Registrable, Lazy classes from AllenNLP

Topics

Resources

License

Stars

Watchers

Forks

Languages