Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def loadSamples():
- f = open('data/triplets_sample_20p.txt')
- i = 0
- for line in f:
- triplets_sample.append(parseRow(line))
- if i % 1000000 == 0:
- print(i)
- i += 1
- f.close()
- def loadUniqueTracks():
- f = open('data/unique_tracks.txt', encoding='ISO-8859-1')
- i = 0
- for line in f:
- parsed_row = parseRow(line)
- unique_tracks[parsed_row[1]] = [parsed_row[0], parsed_row[2], parsed_row[3]]
- if i % 1000000 == 0:
- print(i)
- i += 1
- f.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement