AllenNLP
Guide
Edit on GitHub
AllenNLP Website
AllenNLP Docs
Home
Overview
Part 1: Quick Start
Part 2: Abstractions, Design, and Testing
Reading data
Building your model
Common architectures
Representing text as features: Tokenizers, TextFields, and TextFieldEmbedders
Writing tests for your code
Making predictions and serving demos
Using config files: FromParams and Registrable
Writing your own scripts
Debugging your AllenNLP code
Hyperparameter Optimization
Part 3: Practical Tasks With AllenNLP
Edit on GitHub
AllenNLP Website
AllenNLP Docs
Overview
Part 1: Quick Start
Part 2: Abstractions, Design, and Testing
Reading data
Building your model
Common architectures
Representing text as features: Tokenizers, TextFields, and TextFieldEmbedders
Writing tests for your code
Making predictions and serving demos
Using config files: FromParams and Registrable
Writing your own scripts
Debugging your AllenNLP code
Hyperparameter Optimization
Part 3: Practical Tasks With AllenNLP
Part 2: Abstractions, Design, and Testing
Using config files: FromParams and Registrable
This chapter describes AllenNLP's simple dependency injection framework.
1
Motivation: Dependency Injection
2
Injecting dependencies with FromParams
3
Handling polymorphism with Registrable
4
Handling runtime and sequential dependencies
5
Avoiding duplication of base class parameters
6
Allowing multiple constructors for the same object
7
Including your own registered components
Previous Chapter
Next Chapter