Closed tempdeltavalue closed 2 years ago
You commented out parse_args?
@stephenroller Yes, because I try to run that code in colab (just want to investigate infrastructure)
in other worlds how to pass task in Opt ? What tasks are exist, where I can check that (something like tasks zoo) ? Can I create world in a different way, without task ?
(I just want run code from docs in colab)
Just had the same problem ... solution is on the same documentation page, but a bit lower. Basically, one needs to initiate a task after initiating the variable opt, something like opt['task']="babi:Task1k:1"
Now, you have to download the necessary files in advance. This is done from the command line (ie no need to be in python), specifying the task that needs to be downloaded. parlai display_data --task babi:task1k:1
Additional detailed explanations @ https://parl.ai/docs/tutorial_basic.html#what-is-parlai , under 'Tasks'
parser = ParlaiParser() opt = Opt() // opt['task']="some"
// opt = parser.parse_args()
agent = RepeatLabelAgent(opt) world = create_task(opt, agent)
code from docs https://parl.ai/docs/tutorial_basic.html