Skip to content

Commit

Permalink
Always download data on interactive wizard. (facebookresearch#3079)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenroller authored Sep 14, 2020
1 parent a3f581c commit 5f18bc2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions parlai/tasks/wizard_of_wikipedia/worlds.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
from parlai.tasks.self_chat.worlds import SelfChatWorld as SelfChatBaseWorld
from parlai.utils.misc import warn_once

from .build import build

from projects.wizard_of_wikipedia.knowledge_retriever.knowledge_retriever import (
KnowledgeRetrieverAgent,
)
Expand Down Expand Up @@ -74,6 +76,7 @@ def _set_up_knowledge_agent(self, add_token_knowledge=False):

def _load_topics(self, opt):
# Load possible chosen topics
build(opt)
topics_path = os.path.join(
opt['datapath'], 'wizard_of_wikipedia', 'topic_splits.json'
)
Expand Down

0 comments on commit 5f18bc2

Please sign in to comment.