Skip to content

Instantly share code, notes, and snippets.

@brun0xff
Created October 14, 2017 17:59
Show Gist options
  • Save brun0xff/9dde606b7a49d8fd7ac532c0369fad3b to your computer and use it in GitHub Desktop.
Save brun0xff/9dde606b7a49d8fd7ac532c0369fad3b to your computer and use it in GitHub Desktop.
#!/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