-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathworkflow.py
More file actions
29 lines (24 loc) · 867 Bytes
/
workflow.py
File metadata and controls
29 lines (24 loc) · 867 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import os
import sys
import asyncio
sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
from economic_indicators.NLPAnalysis import EI_NLPAnalysis
from earnings.NLPAnalysis import NLP as ER_NLPAnalysis
from social_media.NLPAnalysis import social_media_sentiment_analysis as SM_NLPAnalysis
from news.sentiment_analysis import sentiment_analysis_on_ticker as NA_NLPAnalysis
ticker = 'AAPL'
async def main():
socialMedia = await SM_NLPAnalysis(ticker)
earnings = await ER_NLPAnalysis(ticker)
news = await NA_NLPAnalysis(ticker)
economicIndicators = await EI_NLPAnalysis(ticker)
print("NEW SECTION")
print(socialMedia)
print("NEW SECTION")
print(earnings)
print("NEW SECTION")
print(news)
print("NEW SECTION")
print(economicIndicators)
if __name__ == '__main__':
asyncio.run(main())