[F] Fix load user sample

This commit is contained in:
Hykilpikonna
2021-11-24 11:22:58 -05:00
parent 4e84de3fca
commit 81c43dc06e
2 changed files with 2 additions and 2 deletions
-1
View File
@@ -35,7 +35,6 @@ if __name__ == '__main__':
# (After step P1) Select 500 most popular users and 500 random users who meet a particular
# criteria as our sample, also find news channels
# select_user_sample()
get_english_news_channels()
# Just curious, who are the 20 most popular individuals on twitter?
# print(tabulate(((u.username, u.popularity) for u in load_user_sample().most_popular[:20]),
+2 -1
View File
@@ -177,7 +177,8 @@ def load_user_sample() -> Sample:
"""
j = json.loads(read(f'{USER_DIR}/processed/sample.json'))
return Sample([ProcessedUser(*u) for u in j['most_popular']],
[ProcessedUser(*u) for u in j['random']])
[ProcessedUser(*u) for u in j['random']],
j['english_news'])
class Posting(NamedTuple):