Skip to content

Instantly share code, notes, and snippets.

View ajfisch's full-sized avatar

Adam Fisch ajfisch

View GitHub Profile
@ajfisch
ajfisch / interactive.py
Created May 8, 2017 15:55
Interactive drqa model with ParlAI
# Run: python path/to/file --pretrained_model path/to/model
#
# Example interaction:
# Context: I was thirsty today. So I went to the market and bought some water.
# Question: What did I buy?
# Reply: some water
import torch
import logging
from parlai.agents.drqa.agents import DocReaderAgent