Lesson 4 imdb - numericalize returns zeros


When trying to test the language model I run the piece of code the invokes numericalize. And it returns a tensor of zeros (see below). The TEXT field has its vocab property initialized, and stoi works (at least pops out numbers for words in the text)

Please help


Found the solution if anybody runs into something similar:

It turns out that spacy token’s text property should be used as an input to numericalize.