Skip to content

Instantly share code, notes, and snippets.

@aaronlidman
Last active December 15, 2015 08:49
Show Gist options
  • Save aaronlidman/5233570 to your computer and use it in GitHub Desktop.
Save aaronlidman/5233570 to your computer and use it in GitHub Desktop.
import csv
count = 0
places = {}
with open('infobox_properties_en.nt', 'rU') as file:
r = csv.reader(file, delimiter=' ')
for line in r:
# line 1 is just a timestamp
if count > 0 and count < 200:
line = csv.reader(line, delimiter=' ')
print list(line)
count = count + 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment