facebookarchive / bAbI-tasks

Task generation for testing text understanding and reasoning
Other
897 stars 184 forks source link

Loading Worlds from Text Files #16

Open nahtoo opened 5 years ago

nahtoo commented 5 years ago

What is the syntax for using world:load(filename) to add new worlds?

Let's say the file I wanted to load was world.txt. I've tried world:load(world.txt), world:load world.txt, and other similar formats with varying spacing, but I only get syntax error near unexpected token '(' or syntax error near unexpected token 'world.txt'.

jaseweston commented 5 years ago

see this tutorial for loading text files: https://www.parl.ai/docs/tutorial_task.html (the top of it about the fromfile task)

nahtoo commented 5 years ago

Ok, from the fromfile task example I gathered that I should be using the whole path but that still doesn't work. Is this just a case of input error\giving the wrong path, or should I instead load new worlds into parlAI and generate bAbI-tasks from there?