Search is not available for this dataset
repo stringlengths 2 152 ⌀ | file stringlengths 15 239 | code stringlengths 0 58.4M | file_length int64 0 58.4M | avg_line_length float64 0 1.81M | max_line_length int64 0 12.7M | extension_type stringclasses 364
values |
|---|---|---|---|---|---|---|
null | ParlAI-main/parlai/tasks/eli5/README.md | # ELI5
This is the ParlAI adaptation of the ELI5 dataset. It has a lot of moving parts,
most of which have been adapted from the [original repo](https://github.com/facebookresearch/ELI5/). For more information about the dataset, related paper,
please visit that repo.
------------------------------------------------... | 6,243 | 46.30303 | 288 | md |
null | ParlAI-main/parlai/tasks/eli5/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/eli5/agents.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Optional
from parlai.core.params import ParlaiParser
from parlai.core.opt import Opt
from parlai.core... | 2,635 | 29.298851 | 98 | py |
null | ParlAI-main/parlai/tasks/eli5/build.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Download and build the data if it does not exist.
from parlai.core.build_data import DownloadableFile
import parlai.co... | 4,358 | 37.236842 | 105 | py |
null | ParlAI-main/parlai/tasks/eli5/data_creation/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/eli5/data_creation/data_utils.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Taken from
https://github.com/facebookresearch/ELI5/blob/main/data_creation/data_utils.py.
"""
import json
import m... | 9,181 | 35.581673 | 83 | py |
null | ParlAI-main/parlai/tasks/eli5/data_creation/download_reddit_qalist.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Adapted from https://github.com/facebookresearch/ELI5/blob/main/data_creation/download
_reddit_qalist.py to download... | 21,150 | 38.460821 | 88 | py |
null | ParlAI-main/parlai/tasks/eli5/data_creation/download_support_docs.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import json
import subprocess
from os.path import join as pjoin
from os.path import isfile
from os.path import isdir
fro... | 13,468 | 35.10992 | 102 | py |
null | ParlAI-main/parlai/tasks/eli5/data_creation/finalize_qda.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import json
from glob import glob
from os.path import join as pjoin
from parlai.core.params import ParlaiParser
"""
Ad... | 2,215 | 27.779221 | 93 | py |
null | ParlAI-main/parlai/tasks/eli5/data_creation/merge_support_docs.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
File adapted from
https://github.com/facebookresearch/ELI5/blob/main/data_creation/merge_support_docs.py
Modified to... | 3,441 | 31.168224 | 87 | py |
null | ParlAI-main/parlai/tasks/eli5/data_creation/select_sentences_tfidf.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import json
import os
from os.path import join as pjoin
from os.path import isfile, isdir
from parlai.core.params impor... | 5,700 | 34.409938 | 90 | py |
null | ParlAI-main/parlai/tasks/eli5/data_creation/slurm_scripts/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/eli5/data_creation/slurm_scripts/eli_download_docs.sh | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "${DIR}/.."
pwd
echo $SCNUM
python download_support_docs.py -ns $SCNUM
| 218 | 26.375 | 71 | sh |
null | ParlAI-main/parlai/tasks/eli5/data_creation/slurm_scripts/eli_download_docs_launcher.sh | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
for i in {0..99}; do sbatch --export=SCNUM=$i eli_download_docs.sbatch; done
| 149 | 36.5 | 76 | sh |
null | ParlAI-main/parlai/tasks/eli5/data_creation/slurm_scripts/eli_merge_docs.sh | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "${DIR}/.."
pwd
echo $NM
echo $C
python merge_support_docs.py -n $NM -c $C
| 222 | 23.777778 | 71 | sh |
null | ParlAI-main/parlai/tasks/eli5/data_creation/slurm_scripts/eli_merge_docs_launcher.sh | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
for nm in 'explainlikeimfive'
do
for c in {0..9}
do
sbatch --export=ALL,NM=$nm,C=$c eli_merge_docs.sbatch
done
done
| 208 | 19.9 | 70 | sh |
null | ParlAI-main/parlai/tasks/eli5/data_creation/slurm_scripts/eli_select_docs.sh | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
cd "${DIR}/.."
pwd
echo $NM
echo $C
echo $NS
echo $NC
python select_sentences_tfidf.py -sr_n $NM -sid $C -ns $NS -nc $NC
| 265 | 23.181818 | 71 | sh |
null | ParlAI-main/parlai/tasks/eli5/data_creation/slurm_scripts/eli_select_docs_launcher.sh | # Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved
for nm in 'explainlikeimfive'
do
export ns=15
export nc=1
for c in {0..99}
do
sbatch --export=ALL,NM=$nm,C=$c,NS=$ns,NC=$nc eli_select_docs.sbatch
done
done
| 257 | 20.5 | 76 | sh |
null | ParlAI-main/parlai/tasks/empathetic_dialogues/README.md | Task: Empathetic Dialogues
===========================
Description: A dataset of 25k conversations grounded in emotional situations to facilitate training and evaluating dialogue systems. See https://arxiv.org/abs/1811.00207 for more information.
===========================
LICENSE: This dataset has been released un... | 818 | 42.105263 | 192 | md |
null | ParlAI-main/parlai/tasks/empathetic_dialogues/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/empathetic_dialogues/agents.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
from typing import List, Optional
import parlai.utils.logging as logging
from parlai.utils.io import PathMana... | 6,462 | 35.106145 | 134 | py |
null | ParlAI-main/parlai/tasks/empathetic_dialogues/build.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Download and build the data if it does not exist.
from parlai.core.build_data import DownloadableFile
import parlai.c... | 1,216 | 30.205128 | 82 | py |
null | ParlAI-main/parlai/tasks/empathetic_dialogues/test.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from parlai.utils.testing import AutoTeacherTest # noqa: F401
class TestDefaultTeacher(AutoTeacherTest):
task = '... | 342 | 27.583333 | 65 | py |
null | ParlAI-main/parlai/tasks/empathetic_dialogues/worlds.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from parlai.tasks.self_chat.worlds import SelfChatWorld as SelfChatBaseWorld
class SelfChatWorld(SelfChatBaseWorld):
... | 367 | 27.307692 | 76 | py |
null | ParlAI-main/parlai/tasks/empathetic_dialogues/test/empathetic_dialogues_test.yml | acts:
- - emotion: guilty
episode_done: false
eval_labels:
- Did you suffer any injuries?
id: empathetic_dialogues
label_candidates:
- I hope it goes well! If it makes you feel any better, most of them are probably
just as nervous and are looking for any excuse to relax and let their guard... | 10,245 | 52.088083 | 88 | yml |
null | ParlAI-main/parlai/tasks/empathetic_dialogues/test/empathetic_dialogues_train.yml | acts:
- - emotion: sentimental
episode_done: false
id: empathetic_dialogues
labels:
- Was this a friend you were in love with, or just a best friend?
situation: I remember going to the fireworks with my best friend. There was a
lot of people, but it only felt like us in the world.
text: I ... | 1,829 | 38.782609 | 85 | yml |
null | ParlAI-main/parlai/tasks/empathetic_dialogues/test/empathetic_dialogues_valid.yml | acts:
- - emotion: terrified
episode_done: false
eval_labels:
- Are you fine now?
id: empathetic_dialogues
label_candidates:
- It's amazing how many feelings and memories mementos like that can bring back.
- Good for you! There is nothing wrong or uncool about short hair.
- The loss of a... | 9,141 | 50.943182 | 89 | yml |
null | ParlAI-main/parlai/tasks/entailment_bank/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/entailment_bank/agents.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Imported from https://allenai.org/data/entailmentbank
Paper: "Explaining Answers with Entailment Trees" (Dalvi et al... | 5,743 | 38.07483 | 117 | py |
null | ParlAI-main/parlai/tasks/entailment_bank/build.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import parlai.core.build_data as build_data
from parlai.core.build_data import DownloadableFile
import os
RESOURCES = ... | 1,294 | 29.116279 | 84 | py |
null | ParlAI-main/parlai/tasks/eqasc/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/eqasc/agents.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
Imported from https://github.com/harsh19/Reasoning-Chains-MultihopQA
Paper: "Learning to Explain: Datasets and Model... | 3,101 | 30.653061 | 119 | py |
null | ParlAI-main/parlai/tasks/eqasc/build.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import parlai.core.build_data as build_data
from parlai.core.build_data import DownloadableFile
import os
"""
eQASC Da... | 1,976 | 30.380952 | 129 | py |
null | ParlAI-main/parlai/tasks/fits/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/fits/agents.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import os
import copy
import json
import random
from typing import Optional
from parlai.utils.misc import warn_once
fro... | 27,863 | 38.134831 | 137 | py |
null | ParlAI-main/parlai/tasks/fits/build.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import parlai.core.build_data as build_data
import os
from parlai.utils.logging import logger
from parlai.core.build_dat... | 1,639 | 31.156863 | 75 | py |
null | ParlAI-main/parlai/tasks/fits/constants.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from enum import Enum
class FeedbackType(Enum):
PERFECT = "perfect"
CORRECT_SEARCH_QUERY = "better_search_query... | 631 | 24.28 | 65 | py |
null | ParlAI-main/parlai/tasks/fits/mutators.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from string import punctuation
import copy
from typing import List
from parlai.core.mutators import register_mutator, Ma... | 11,361 | 30.826331 | 143 | py |
null | ParlAI-main/parlai/tasks/fits/test.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from parlai.utils.testing import AutoTeacherTest # noqa: F401
class TestFitsBaseTeacher(AutoTeacherTest):
task = ... | 585 | 23.416667 | 65 | py |
null | ParlAI-main/parlai/tasks/fits/test/fits_FitsFeedbackTeacher_test.yml | acts:
- - __retrieved-docs-titles__:
- Desserts Archives Crockett Honey Co_0
- HoneyCakes Desserts Spiked Cheesecakes in a Jar_0
- Peanut Butter Honey Truffles Healthy Recipe_0
- Best Honey Recipes Main Dishes Appetizers Desserts_0
- 31 Healthy Recipes With Honey Cooking Light_0
__retrieved-docs... | 49,925 | 48.480674 | 91 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_FitsFeedbackTeacher_train.yml | acts:
- - __retrieved-docs-titles__:
- The War of the Roses 1989 IMDb_0
- Wars of the Roses HISTORY_0
- Wars of the Roses Summary History Family Tree Facts_0
- The War of the Roses Rotten Tomatoes_0
- 9 Things You Should Know About the Wars of Roses_0
__retrieved-docs-urls__:
- ''
- ''
... | 49,653 | 46.470363 | 92 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_FitsFeedbackTeacher_valid.yml | acts:
- - __retrieved-docs-titles__:
- Hyperloop How Elon Musk s Tube Travel Concept Works_0
- Elon Musk s hyperloop dream may come true and soon_0
- What is Hyperloop The 700mph subsonic train explained_0
- Hyperloop at USC_0
- HyperLoopDesign for open source development of Hyperloop_0
__retrie... | 50,171 | 46.466414 | 162 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_FitsSatisfactionTeacher_test.yml | acts:
- - __retrieved-docs-titles__:
- How To Grow Potatoes A Step By Guide_0
- How to Grow Potatoes Step by New Life On A Homestead_0
- 7 Ways to Grow Potatoes at Home How in_0
- Growing Potatoes How to Plant Harvest Garden_0
- How to Grow a Potato in Cup Home Guides SF Gate_0
__retrieved-docs-... | 146,918 | 42.531556 | 101 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_FitsSatisfactionTeacher_train.yml | acts:
- - __retrieved-docs-titles__:
- How to Replace a Bicycle Tire with Pictures wikiHow_0
- Chain quick links A guide to easy connection CyclingTips_0
- How to Install a Shimano HG or IG Chain with BikeRide_0
- Park Tool How to Remove and Install a Crank_0
- How to Disassemble overhaul and clean ... | 177,415 | 44.655172 | 112 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_FitsSatisfactionTeacher_valid.yml | acts:
- - __retrieved-docs-titles__:
- Ballet Costume History Tutu toile_0
- ballet costume Britannica_0
- What Is a Miners Cut Diamond LoveToKnow_0
- Vans Official Site Free Shipping Returns_0
- 4 Ways to Dress Up for a Disco Party wikiHow_0
__retrieved-docs-urls__:
- ''
- ''
- ''
... | 95,271 | 45.226104 | 121 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_QueryTeacher_test.yml | acts:
- - episode_done: true
eval_labels:
- Nba season start nba.com
id: fits_query_None
text: 'When does the nba season begin?
I''m not sure, but I''m pretty sure it starts next week.
What does it say on the nba website?'
- - episode_done: true
eval_labels:
- 50th anniversary wedd... | 1,918 | 30.459016 | 89 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_QueryTeacher_train.yml | acts:
- - episode_done: true
id: fits_query_None
labels:
- Recipe for dessert with at least 1 spoon of honey per serving
text: I would like to find a recipe for a dessert with honey.
- - episode_done: true
id: fits_query_None
labels:
- How to change wiper blades step by step
text: 'How d... | 1,077 | 29.8 | 84 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_QueryTeacher_valid.yml | acts:
- - episode_done: true
eval_labels:
- Who will build a hyper loop train
id: fits_query_None
text: 'What is a hyper loop, can you tell me who will ride them? Where will the
hyper loops go to and come from?
It''s a train that goes from one place to another in a tube. The current plans
... | 1,400 | 30.840909 | 84 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_test.yml | acts:
- - __retrieved-docs-titles__:
- Desserts Archives Crockett Honey Co_0
- HoneyCakes Desserts Spiked Cheesecakes in a Jar_0
- Peanut Butter Honey Truffles Healthy Recipe_0
- Best Honey Recipes Main Dishes Appetizers Desserts_0
- 31 Healthy Recipes With Honey Cooking Light_0
__retrieved-docs... | 216,612 | 52.843649 | 107 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_train.yml | acts:
- - __retrieved-docs-titles__:
- The War of the Roses 1989 IMDb_0
- Wars of the Roses HISTORY_0
- Wars of the Roses Summary History Family Tree Facts_0
- The War of the Roses Rotten Tomatoes_0
- 9 Things You Should Know About the Wars of Roses_0
__retrieved-docs-urls__:
- ''
- ''
... | 372,009 | 49.918423 | 99 | yml |
null | ParlAI-main/parlai/tasks/fits/test/fits_valid.yml | acts:
- - __retrieved-docs-titles__:
- Hyperloop How Elon Musk s Tube Travel Concept Works_0
- Elon Musk s hyperloop dream may come true and soon_0
- What is Hyperloop The 700mph subsonic train explained_0
- Hyperloop at USC_0
- HyperLoopDesign for open source development of Hyperloop_0
__retrie... | 156,620 | 52.145911 | 182 | yml |
null | ParlAI-main/parlai/tasks/flickr30k/README.md | Task: Flickr30k
================
Description: 30k captioned images pulled from Flickr compiled by UIUC: http://web.engr.illinois.edu/~bplumme2/Flickr30kEntities/. Based off of these papers: https://arxiv.org/abs/1505.04870v2, http://aclweb.org/anthology/Q14-1006
Tags: #Flickr30k, #All, #Visual
| 297 | 41.571429 | 229 | md |
null | ParlAI-main/parlai/tasks/flickr30k/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/flickr30k/agents.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Optional
from parlai.core.params import ParlaiParser
from parlai.core.opt import Opt
from parlai.core... | 6,178 | 35.347059 | 86 | py |
null | ParlAI-main/parlai/tasks/flickr30k/build.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Download and build the data if it does not exist.
from parlai.core.build_data import DownloadableFile
import parlai.co... | 1,175 | 29.947368 | 75 | py |
null | ParlAI-main/parlai/tasks/friends/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/friends/agents.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from typing import Optional
from parlai.core.opt import Opt
from parlai.core.teachers import DialogTeacher
from parlai.c... | 11,265 | 37.848276 | 296 | py |
null | ParlAI-main/parlai/tasks/friends/build.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
# Download and build the data if it does not exist.
import parlai.core.build_data as build_data
from parlai.core.build_d... | 3,241 | 32.42268 | 96 | py |
null | ParlAI-main/parlai/tasks/friends/test.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from parlai.utils.testing import AutoTeacherTest # noqa: F401
class TestDefaultTeacher(AutoTeacherTest):
task = '... | 844 | 20.125 | 65 | py |
null | ParlAI-main/parlai/tasks/friends/test/friends_all_characters_test.yml | acts:
- - characters: Joey Tribbiani,Rachel Green,Ross Geller
episode_done: false
eval_labels:
- Ooy.
id: friends:all_characters
speakers:
- Ross Geller
- Rachel Green
text: 'Ross Geller: Everyone? I would like to make a toast to Rachel and Joey.
Rachel Green: '
- - characters: Jo... | 2,936 | 28.666667 | 88 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_all_characters_train.yml | acts:
- - characters: Phoebe Buffay,Ross Geller
episode_done: false
id: friends:all_characters
labels:
- Hi!
speakers:
- Phoebe Buffay
- Ross Geller
text: 'Phoebe Buffay: Oh hey! Wait up!
Ross Geller: '
- - characters: Phoebe Buffay,Ross Geller
episode_done: false
id: frie... | 2,537 | 25.4375 | 85 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_all_characters_valid.yml | acts:
- - characters: Chandler Bing,Joey Tribbiani,Monica Geller,Phoebe Buffay,Rachel Green,Ross
Geller
episode_done: false
eval_labels:
- Chandler, if it really hurts that bad you should just tell her.
id: friends:all_characters
speakers:
- Chandler Bing
- Joey Tribbiani
text: 'Ch... | 3,796 | 34.157407 | 90 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_chandler_test.yml | acts:
- - characters: Chandler Bing,Joey Tribbiani
episode_done: true
eval_labels:
- I'm gonna hold him a different way. Look I don't understand, if you hated it
so much, why did you buy it in the first place?
id: friends:chandler
speakers:
- Chandler Bing
- Joey Tribbiani
- Chandl... | 3,333 | 27.495726 | 90 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_chandler_train.yml | acts:
- - characters: Chandler Bing
episode_done: false
id: friends:chandler
labels:
- Oh, no, no, I'm an intern, just like you guys... except for the tie, the briefcase...
and the fact that I can rent a car.
speakers:
- Chandler Bing
- Intern
- Chandler Bing
text: 'Chandler Bi... | 3,033 | 25.849558 | 91 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_chandler_valid.yml | acts:
- - characters: Chandler Bing,Joey Tribbiani,Monica Geller,Phoebe Buffay,Rachel Green,Ross
Geller
episode_done: false
eval_labels:
- Look, for the first time in my life I'm in a real relationship. Okay, I'm not
gonna screw that up by y'know, telling the truth.
id: friends:chandler
... | 6,795 | 31.516746 | 90 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_joey_test.yml | acts:
- - characters: Joey Tribbiani,Rachel Green,Ross Geller
episode_done: false
eval_labels:
- Dude, are you okay?
id: friends:joey
speakers:
- Ross Geller
- Rachel Green
- Ross Geller
- Rachel Green
- Ross Geller
- Joey Tribbiani
text: 'Ross Geller: Everyone? I would l... | 9,939 | 28.235294 | 88 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_joey_train.yml | acts:
- - characters: Joey Tribbiani
episode_done: false
id: friends:joey
labels:
- Well, you must be new here. Why don't we get a table and I'll buy you a drink.
speakers:
- The Casting Director
- Joey Tribbiani
text: 'The Casting Director: Any time you''re ready, Joey.
Joey Trib... | 3,819 | 28.612403 | 86 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_joey_valid.yml | acts:
- - characters: Chandler Bing,Joey Tribbiani,Monica Geller,Phoebe Buffay,Rachel Green,Ross
Geller
episode_done: false
eval_labels:
- Chandler, if it really hurts that bad you should just tell her.
id: friends:joey
speakers:
- Chandler Bing
- Joey Tribbiani
text: 'Chandler Bin... | 6,110 | 32.762431 | 90 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_monica_test.yml | acts:
- - characters: Chandler Bing,Joey Tribbiani,Monica Geller,Phoebe Buffay
episode_done: false
eval_labels:
- Joey, you're this guy's teacher. I mean how could you do this?
id: friends:monica
speakers:
- Chandler Bing
- Joey Tribbiani
- Chandler Bing
- Monica Geller
text: 'Ch... | 3,830 | 25.604167 | 90 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_monica_train.yml | acts:
- - characters: Monica Geller,Phoebe Buffay,Rachel Green,Ross Geller
episode_done: false
id: friends:monica
labels:
- Ohh, sweetie! Hey, I bet you anything that he's gonna call you again.
speakers:
- Rachel Green
- Phoebe Buffay
- Rachel Green
- Phoebe Buffay
- Rachel Green... | 10,537 | 26.878307 | 88 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_monica_valid.yml | acts:
- - characters: Chandler Bing,Joey Tribbiani,Monica Geller,Phoebe Buffay,Rachel Green,Ross
Geller
episode_done: false
eval_labels:
- Guys! Guys! I just saw two people having sex in a car right outside.
id: friends:monica
speakers:
- Chandler Bing
- Joey Tribbiani
- Chandler B... | 10,843 | 27.687831 | 90 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_phoebe_test.yml | acts:
- - characters: Phoebe Buffay
episode_done: false
eval_labels:
- Alright... Susie, can I call you Susie?
id: friends:phoebe
speakers:
- Phoebe Buffay
- Precious
- Phoebe Buffay
text: 'Phoebe Buffay: Okay, bye. Alright, so Mike''s on his way over. See, you
thought you guys... | 5,806 | 33.981928 | 92 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_phoebe_train.yml | acts:
- - characters: Phoebe Buffay,Ross Geller
episode_done: false
id: friends:phoebe
labels:
- Congratulations! I didn't want to say anything in front of Joey 'cause I didn't
know if he knew yet.
speakers:
- Phoebe Buffay
- Ross Geller
- Phoebe Buffay
text: 'Phoebe Buffay: Oh... | 4,125 | 26.691275 | 85 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_phoebe_valid.yml | acts:
- - characters: Chandler Bing,Joey Tribbiani,Monica Geller,Phoebe Buffay,Rachel Green,Ross
Geller
episode_done: false
eval_labels:
- Hey! Umm, well, only okay because I just got back from, from the hospital.
id: friends:phoebe
speakers:
- Chandler Bing
- Joey Tribbiani
- Chan... | 13,576 | 28.774123 | 91 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_rachel_test.yml | acts:
- - characters: Joey Tribbiani,Rachel Green,Ross Geller
episode_done: false
eval_labels:
- Ooy.
id: friends:rachel
speakers:
- Ross Geller
- Rachel Green
text: 'Ross Geller: Everyone? I would like to make a toast to Rachel and Joey.
Rachel Green: '
- - characters: Joey Tribb... | 5,876 | 27.391304 | 88 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_rachel_train.yml | acts:
- - characters: Monica Geller,Phoebe Buffay,Rachel Green,Ross Geller
episode_done: false
id: friends:rachel
labels:
- Well, I did my best to convince him that I'm not some crazy girl who is dying
to get married-I'm just going through a hard time.
speakers:
- Rachel Green
- Phoebe... | 4,813 | 30.25974 | 89 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_rachel_valid.yml | acts:
- - characters: Chandler Bing,Joey Tribbiani,Monica Geller,Phoebe Buffay,Rachel Green,Ross
Geller
episode_done: false
eval_labels:
- Joey, if you wanna look good, why don't you just come down to the store? I'll
help you out.
id: friends:rachel
speakers:
- Chandler Bing
- Jo... | 10,479 | 28.60452 | 90 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_ross_test.yml | acts:
- - characters: Joey Tribbiani,Rachel Green,Ross Geller
episode_done: false
eval_labels:
- And to love. Ah, love. L-O-V-E, love. L is for life. And what is life without
love?
id: friends:ross
speakers:
- Ross Geller
- Rachel Green
- Ross Geller
text: 'Ross Geller: Everyon... | 4,536 | 28.653595 | 88 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_ross_train.yml | acts:
- - characters: Phoebe Buffay,Ross Geller
episode_done: false
id: friends:ross
labels:
- Hi!
speakers:
- Phoebe Buffay
- Ross Geller
text: 'Phoebe Buffay: Oh hey! Wait up!
Ross Geller: '
- - characters: Phoebe Buffay,Ross Geller
episode_done: false
id: friends:ross
... | 3,522 | 26.1 | 85 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_ross_valid.yml | acts:
- - characters: Chandler Bing,Joey Tribbiani,Monica Geller,Phoebe Buffay,Rachel Green,Ross
Geller
episode_done: false
eval_labels:
- Hey.
id: friends:ross
speakers:
- Chandler Bing
- Joey Tribbiani
- Chandler Bing
- Ross Geller
text: 'Chandler Bing: I''m telling you, ... | 6,983 | 29.902655 | 90 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_test.yml | acts:
- - characters: Joey Tribbiani,Rachel Green,Ross Geller
episode_done: false
eval_labels:
- Ooy.
id: friends
speakers:
- Ross Geller
- Rachel Green
text: 'Ross Geller: Everyone? I would like to make a toast to Rachel and Joey.
Rachel Green: '
- - characters: Joey Tribbiani,Ra... | 2,861 | 27.909091 | 88 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_train.yml | acts:
- - characters: Phoebe Buffay,Ross Geller
episode_done: false
id: friends
labels:
- Hi!
speakers:
- Phoebe Buffay
- Ross Geller
text: 'Phoebe Buffay: Oh hey! Wait up!
Ross Geller: '
- - characters: Phoebe Buffay,Ross Geller
episode_done: false
id: friends
labels:... | 2,462 | 24.65625 | 85 | yml |
null | ParlAI-main/parlai/tasks/friends/test/friends_valid.yml | acts:
- - characters: Chandler Bing,Joey Tribbiani,Monica Geller,Phoebe Buffay,Rachel Green,Ross
Geller
episode_done: false
eval_labels:
- Chandler, if it really hurts that bad you should just tell her.
id: friends
speakers:
- Chandler Bing
- Joey Tribbiani
text: 'Chandler Bing: I'... | 3,721 | 33.462963 | 90 | yml |
null | ParlAI-main/parlai/tasks/fromfile/README.md | # FromFile Task Agent
If you have a dialogue, QA or other text-only dataset that you can put in a text file in the format we will now describe, you can just load it directly from there, with no extra code!
E.g. use with:
python parlai/scripts/display_data.py -t fromfile:parlaiformat --fromfile_datapath /tmp/data.tx... | 322 | 39.375 | 183 | md |
null | ParlAI-main/parlai/tasks/fromfile/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/fromfile/agents.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
#
# This task simply loads the specified file: useful for quick tests without
# setting up a new task.
from typing impor... | 5,082 | 35.568345 | 243 | py |
null | ParlAI-main/parlai/tasks/funpedia/__init__.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
| 199 | 32.333333 | 65 | py |
null | ParlAI-main/parlai/tasks/funpedia/agents.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from parlai.core.teachers import FbDeprecatedDialogTeacher, FixedDialogTeacher
from parlai.utils.io import PathManager
f... | 5,122 | 26.395722 | 88 | py |
null | ParlAI-main/parlai/tasks/funpedia/build.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
import parlai.core.build_data as build_data
import os
def build(opt):
version = 'v6.0'
dpath = os.path.join(op... | 1,203 | 31.540541 | 81 | py |
null | ParlAI-main/parlai/tasks/funpedia/test.py | #!/usr/bin/env python3
# Copyright (c) Facebook, Inc. and its affiliates.
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
from parlai.utils.testing import AutoTeacherTest
class TestDefaultTeacher(AutoTeacherTest):
task = "funpedia"
cl... | 695 | 20.75 | 65 | py |
null | ParlAI-main/parlai/tasks/funpedia/test/funpedia_echo_test.yml | acts:
- - episode_done: true
eval_labels:
- The Case of Mines or "R v Earl of Northumberland" was decided in 1568.
id: funpedia:echo
reward: 0
text: 'Case of Mines
Kind
The Case of Mines or "R v Earl of Northumberland" was decided in 1568.'
- - episode_done: true
eval_labels:
-... | 1,348 | 23.981481 | 77 | yml |
null | ParlAI-main/parlai/tasks/funpedia/test/funpedia_echo_train.yml | acts:
- - episode_done: true
id: funpedia:echo
labels:
- Some species have two pairs of long barbels.
reward: 0
text: 'Danio
Cultured (Refined, Educated)
Some species have two pairs of long barbels.'
- - episode_done: true
id: funpedia:echo
labels:
- Livingston is a city in... | 1,497 | 24.827586 | 83 | yml |
null | ParlAI-main/parlai/tasks/funpedia/test/funpedia_echo_valid.yml | acts:
- - episode_done: true
eval_labels:
- Bill Tom Closs (January 8, 1922 – June 6, 2011) was an American basketball player.
id: funpedia:echo
reward: 0
text: 'Bill Closs
Deep
Bill Tom Closs (January 8, 1922 – June 6, 2011) was an American basketball player.'
- - episode_done: true
... | 1,528 | 26.303571 | 89 | yml |
null | ParlAI-main/parlai/tasks/funpedia/test/funpedia_funpedia_test.yml | acts:
- - episode_done: true
eval_labels:
- For those interested, in 1568, they decided the Case of Mines, or "R v Earl
of Northumberland"
id: funpedia:funpedia
reward: 0
text: 'Case of Mines
Kind
The Case of Mines or "R v Earl of Northumberland" was decided in 1568.'
- - episode... | 1,500 | 25.333333 | 87 | yml |
null | ParlAI-main/parlai/tasks/funpedia/test/funpedia_funpedia_train.yml | acts:
- - episode_done: true
id: funpedia:funpedia
labels:
- Well, I bet you didn't know about danio's two pairs of long barbels
reward: 0
text: 'Danio
Cultured (Refined, Educated)
Some species have two pairs of long barbels.'
- - episode_done: true
id: funpedia:funpedia
labels... | 1,499 | 25.315789 | 87 | yml |
null | ParlAI-main/parlai/tasks/funpedia/test/funpedia_funpedia_valid.yml | acts:
- - episode_done: true
eval_labels:
- I wonder what went through Bill Tom Closs's mind when he played basketball?
id: funpedia:funpedia
reward: 0
text: 'Bill Closs
Deep
Bill Tom Closs (January 8, 1922 – June 6, 2011) was an American basketball player.'
- - episode_done: true
... | 1,532 | 25.894737 | 89 | yml |
null | ParlAI-main/parlai/tasks/funpedia/test/funpedia_lm_test.yml | acts:
- - episode_done: true
eval_labels:
- For those interested, in 1568, they decided the Case of Mines, or "R v Earl
of Northumberland"
id: funpedia:lm
reward: 0
text: ''
- - episode_done: true
eval_labels:
- The population of Wailuku in Hawaii was 15313 in 2010
id: funpedia:lm
... | 944 | 24.540541 | 87 | yml |
null | ParlAI-main/parlai/tasks/funpedia/test/funpedia_lm_train.yml | acts:
- - episode_done: true
id: funpedia:lm
labels:
- Well, I bet you didn't know about danio's two pairs of long barbels
reward: 0
text: ''
- - episode_done: true
id: funpedia:lm
labels:
- I wonder what the people in Livingston feel about their county, Sumter.
reward: 0
text: '... | 864 | 23.714286 | 87 | yml |
null | ParlAI-main/parlai/tasks/funpedia/test/funpedia_lm_valid.yml | acts:
- - episode_done: true
eval_labels:
- I wonder what went through Bill Tom Closs's mind when he played basketball?
id: funpedia:lm
reward: 0
text: ''
- - episode_done: true
eval_labels:
- Gerald Rashard Everett is a football tight end who plays for the Los Angles
Rams
id: funp... | 901 | 24.055556 | 83 | yml |
null | ParlAI-main/parlai/tasks/funpedia/test/funpedia_nopersona_test.yml | acts:
- - episode_done: true
eval_labels:
- For those interested, in 1568, they decided the Case of Mines, or "R v Earl
of Northumberland"
id: funpedia:nopersona
reward: 0
text: 'Case of Mines
The Case of Mines or "R v Earl of Northumberland" was decided in 1568.'
- - episode_done: true... | 1,374 | 28.255319 | 87 | yml |