Advertisement
sesquiipedalian

Untitled

Jul 29th, 2023
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. import pandas as pd
  2. import numpy as np
  3.  
  4. np.random.seed(8)
  5.  
  6. def load_NYT_news():
  7. df = pd.read_json('business_dump.json')
  8. return df
  9.  
  10. def predict_sentiment(data):
  11. s = np.random.standard_normal(len(data))
  12. return s
  13.  
  14. def main():
  15. data = load_NYT_news()['title']
  16. print(predict_sentiment(data))
  17.  
  18. if __name__ == '__main__':
  19. main()
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement