Update code to change out deprecated features.
Because of an update to torchtext, parts of the code are incompatible since it uses components that have been deprecated. Those parts should be updated along with editing the requirements to a version compatible with it.