Created
October 14, 2017 17:59
-
-
Save brun0xff/9dde606b7a49d8fd7ac532c0369fad3b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import json | |
path = 'datasets-amazon/1-dependency-parser/dep-cam.json' | |
with open(path) as dataset: | |
line = dataset.readline() | |
while line: | |
review = json.loads(line) | |
sentences, strDEP = review['sentences'], review['strDEP'] | |
print sentences, strDEP | |
line = dataset.readline() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment