Allen Institute for AI
Part 1: Quick Start

Your first model

In this chapter you are going to build your first text classification model using AllenNLP.

In this section of the guide, we’ll give a quick start on one the most basic things you can do with AllenNLP: text classification. We give a brief introduction to text classification, then implement a simple classifier that decides whether a movie review expresses positive or negative sentiment.

1What is text classification

2Defining input and output

3Reading data

4Making a DatasetReader

5Building your model

6Implementing the model — the constructor

7Implementing the model — the forward method