# Harry Potter and the Action Prediction Challenge from Natural Language

**Authors:** David Vilares, Carlos G\'omez-Rodr\'iguez

arXiv: 1905.11037 · 2019-05-28

## TL;DR

This paper investigates predicting upcoming actions in textual scenes using Harry Potter stories, creating a new dataset and evaluating models like LSTM and logistic regression for action prediction accuracy.

## Contribution

Introduces HPAC, a novel dataset for action prediction from text, and evaluates baseline models, highlighting their strengths and limitations.

## Key findings

- LSTM performs best on frequent actions and large descriptions.
- Logistic regression is effective on infrequent actions.
- The dataset contains over 82,000 samples and 85 actions.

## Abstract

We explore the challenge of action prediction from textual descriptions of scenes, a testbed to approximate whether text inference can be used to predict upcoming actions. As a case of study, we consider the world of the Harry Potter fantasy novels and inferring what spell will be cast next given a fragment of a story. Spells act as keywords that abstract actions (e.g. 'Alohomora' to open a door) and denote a response to the environment. This idea is used to automatically build HPAC, a corpus containing 82,836 samples and 85 actions. We then evaluate different baselines. Among the tested models, an LSTM-based approach obtains the best performance for frequent actions and large scene descriptions, but approaches such as logistic regression behave well on infrequent actions.

## Full text

_Full body text omitted from this summary view._ Fetch the complete paper as Markdown: https://tomesphere.com/paper/1905.11037/full.md

## Figures

1 figure with captions in the complete paper: https://tomesphere.com/paper/1905.11037/full.md

## References

26 references — full list in the complete paper: https://tomesphere.com/paper/1905.11037/full.md

---
Source: https://tomesphere.com/paper/1905.11037