I’m not familiar enough with torchtext unfortunately.
Could you test this code snippet using some training examples and run a sanity check to see, if the predictions are expected?
PS: Variables are deprecated since PyTorch 0.4, so you can use tensors now. 
To save memory, wrap the inference code in a with torch.no_grad() block.