Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import pandas as pd
- import numpy as np
- np.random.seed(8)
- def load_NYT_news():
- df = pd.read_json('business_dump.json')
- return df
- def predict_sentiment(data):
- return np.random.choice(range(len(data)), len(data), replace=False)
- def main():
- data = load_NYT_news()['title']
- print(predict_sentiment(data))
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement