Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Typod
import json
output = open("kumparan-news-dataset-19062018-16112018.txt", "w")
for line in open("typo-detector-dataset.json"):
data = json.loads(line)
output.write(data["title"].strip() + "\n")
if "content" in data:
output.write(data["content"].strip() + "\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.