Lesson 4 imdb - numericalize returns zeros


#1

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


#2

Found the solution if anybody runs into something similar:
image

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