facebookresearch / ParlAI

A framework for training and evaluating AI models on a variety of openly available dialogue datasets.
https://parl.ai
MIT License
10.48k stars 2.09k forks source link

Wizard of Wikipedia teachers outputting dicts instead of Messages #3712

Closed JulesGM closed 3 years ago

JulesGM commented 3 years ago

On MacOS 11.4 (20F71) Big Sur, with Python 3.8.5, installing with pip from the Github master (HEAD as of today).

jules@MBP:~/anaconda3/lib/python3.8/site-packages/parlai/tasks/wizard_of_wikipedia$ parlai display_data -t wizard_of_wikipedia -dt "train" --include-knowledge True
19:55:06 | Opt:
19:55:06 |     add_missing_turns: none
19:55:06 |     allow_missing_init_opts: False
19:55:06 |     batchsize: 1
19:55:06 |     chosen_topic_delimiter: '\n'
19:55:06 |     datapath: /Users/jules/anaconda3/lib/python3.8/site-packages/data
19:55:06 |     datatype: train:ordered
19:55:06 |     dict_class: None
19:55:06 |     display_add_fields:
19:55:06 |     download_path: None
19:55:06 |     dynamic_batching: None
19:55:06 |     hide_labels: False
19:55:06 |     ignore_agent_reply: True
19:55:06 |     image_cropsize: 224
19:55:06 |     image_mode: raw
19:55:06 |     image_size: 256
19:55:06 |     include_checked_sentence: True
19:55:06 |     include_knowledge: True
19:55:06 |     include_knowledge_separator: False
19:55:06 |     init_model: None
19:55:06 |     init_opt: None
19:55:06 |     is_debug: False
19:55:06 |     label_type: response
19:55:06 |     loglevel: info
19:55:06 |     max_display_len: 1000
19:55:06 |     model: None
19:55:06 |     model_file: None
19:55:06 |     multitask_weights: [1]
19:55:06 |     mutators: None
19:55:06 |     num_examples: 10
19:55:06 |     num_topics: 5
19:55:06 |     override: "{'include_knowledge': True}"
19:55:06 |     parlai_home: /Users/jules/anaconda3/lib/python3.8/site-packages
19:55:06 |     starttime: Jun13_19-55
19:55:06 |     task: wizard_of_wikipedia
19:55:06 |     verbose: False
19:55:06 | creating task(s): wizard_of_wikipedia
loading: /Users/jules/anaconda3/lib/python3.8/site-packages/data/wizard_of_wikipedia/train.json
19:55:17 | Some data not being used. If you are not trying to reproduce the previous results, it is recommended that you run with the flag --add-missing-turns train or --add-missing-turns all.
19:55:35 | parlai.tasks.wizard_of_wikipedia.agents.DefaultTeacher' is outputting dicts instead of messages. If this is a teacher that is part of ParlAI, please file an issue on GitHub. If it is your own teacher, please return a Message object instead.
- - - NEW EPISODE: wizard_of_wikipedia - - -
Science fiction
   I think science fiction is an amazing genre for anything. Future science, technology, time travel, FTL travel, they're all such interesting concepts.
I'm a huge fan of science fiction myself!
   Awesome! I really love how sci-fi storytellers focus on political/social/philosophical issues that would still be around even in the future. Makes them relatable.
I agree. One of my favorite forms of science fiction is anything related to time travel! I find it fascinating.
   It's not quite sci-fi, but my favorite version of time travel is in Harry Potter and the Prisoner of Azkaban. Breaks zero logical rules.
And that's difficult to do when dealing with time travel. I actually haven't seen the latest Harry Potter movies. Guess it's time to check them out!
   If you really want a look at the potential negative consequences of scientific innovation, what you should check out is the TV show Fringe. Incredibly well written.
- - - NEW EPISODE: wizard_of_wikipedia - - -
Internet access
Can you imagine the world without internet access?
   No I could not! I couldn't imagine living when internet access was rare and very few people had it!
Oh me either! It seems like such a long time ago. I wonder when Internet was first created?
   It used to be restricted, but around 1995, the restricted were lifted and commercial use of it began
That is awesome. I wonder why it was restricted? Probably because they only wanted government and big companies to use it at first.
   Yes, it was developed from a government funded projects to help with universities research and laboratories in the United States...I am so glad they expanded it!
I am too, it makes life so much easier!
   What is your favorite thing to do with internet access? I like being able to use my computer and smartphone to use my email and browse the world wide web
- - - NEW EPISODE: wizard_of_wikipedia - - -
Pharmacist
I am just finishing my university course and I will be a qualified pharmacist.  I am so excited about finishing and getting out there into the world of work! Do you work yourself?
   Yes, I perform administrative duties as a pharmacy technician.
Fantastic so you know all about the field.  I completed my four year course and also two 6 month placements but its not the same until you actually start working.  Do you work in a busy pharmacy?
   Yes, I work directly with a lot of patients.
stephenroller commented 3 years ago

Thanks for filing

JulesGM commented 3 years ago

Installed with pip install git+https://github.com/facebookresearch/ParlAI.git just to be 100% clear.

Also, I just wanted to mention in passing that I'm a big fan of your work btw. Cheers.

github-actions[bot] commented 3 years ago

This issue has not had activity in 30 days. Please feel free to reopen if you have more issues. You may apply the "never-stale" tag to prevent this from happening.