Text Regression Guideline using Fastai

In lesson four @jeremy did a text classifier on IMDB.
My question is how can we do a text regressor?
Can someone create a guideline or a code snippet for text regressor, similar to what Jeremy did for text classifier in lesson 4?

All you should need to do is 1. change the dataloader to output your continuous variable and 2. change the loss function

just curious , what would be typical use cases for text regression ?.

Predicting movie sales based on it’s description

predicting which tweets would get most likes or retweets