uberspot / OpenTriviaQA

A creative commons dataset of trivia questions and answers
Creative Commons Attribution Share Alike 4.0 International
202 stars 70 forks source link

Converter should parse multi line questions #7

Closed codeniko closed 8 years ago

codeniko commented 8 years ago

The converter completely messed up on multi line question strings. With these changes, if you have a question like

#Q Finish this old phrase:

When you call a dog, he comes right over to you. When you call a cat, she________________.
^ takes a message
A climbs the curtains
B runs away from you
C thinks its dinner time
D takes a message

it will be converted to

{
    "question": "Finish this old phrase:\n\nWhen you call a dog, he comes right over to you. When you call a cat, she________________.",
    "answer": "takes a message",
    "choices": [
        "climbs the curtains",
        "runs away from you",
        "thinks its dinner time",
        "takes a message"
    ]
}
uberspot commented 8 years ago

Thanks :+1:
Merged :)