Skip to content

Commit

Permalink
news 3
Browse files Browse the repository at this point in the history
  • Loading branch information
philipperemy committed Aug 17, 2016
1 parent 16eb4f7 commit f364f74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Reuters-full-data-set
Full unofficial data set of Reuters composed of 8,551,441 news titles, links and timestamps (Jan 2007- Aug 2016).
Full unofficial data set of Reuters composed of 8,551,441 news titles, links and timestamps (Jan 2007 - Aug 2016).

```
git clone https://github.com/philipperemy/Reuters-full-data-set.git
Expand Down
5 changes: 1 addition & 4 deletions read.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
from __future__ import print_function

import os
import pickle


def read():
import os
c = 0
for ls in os.listdir('data'):
if ls.endswith('.pkl'):
f = open('data/' + ls, 'rb')
data = pickle.load(f)
for datum in data:
print('ts = {}, t = {}, h= {}'.format(datum['ts'], datum['title'], datum['href']))
print(c)
f.close()
print(c)


if __name__ == '__main__':
Expand Down

0 comments on commit f364f74

Please sign in to comment.