Lookup tables using a text file

I have seen a very old video of someone using a text file to populate a lookup table. I tried to copy what he did but it didn’t work, probably because he’s using an older version. Does anyone knows the correct syntaxe for the code ?

I’m using rasa version: “3.1” and Python 3.11.0

image