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):
- s = np.random.standard_normal(len(data))
- return s
- def main():
- data = load_NYT_news()['title']
- s = predict_sentiment(data)
- print(s)
- if __name__ == '__main__':
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement