Yujie Song, Jialiang Lin, Baozheng Li, Sijia Han
With the COVID-19 quick spread, we built a COVID corpus for researches related to COVID-19. We collected tweets by searching the keyword 'covid' and we have excluded the retweets, replies, links or tweets including any emojis. The collected tweets were published between Feb. 23 2022 to Mar. 02 2022. We annotated 1000 tweets by two annotators on two fields: sentiment and topics. After filtering out the disagreed annotated data, we have 494 texts in our corpus.
- Open Docker and make sure everything works fine. If not, please download the lateset version of Docker.
- Type the following commands in the terminal to download frontend and backend images:
docker pull starryskyr/frontend
docker pull starryskyr/backend
- Download dock-compose.yml file.
- Through terminal, get into the directory where the dock-compose.yml file is stored in and run the code below:
docker-compose up
- When your command says webpack compiled successfully. Open the broswer and enter the link: http://localhost:3000/.
- Press
CTRL + C
in the terminal to quit.
-
npm Go to https://nodejs.org/en/ and download nodejs
-
Install libraries
# Material UI
npm install @material-ui/core
# Recharts
npm install recharts
# React-scripts
npm install react-scripts --save
- To start the server, you can run:
npm start
in the project directory
-
Make sure the data file
final_version_annotation.csv
is under the same directory asmain.py
; -
Install packages for backend
# Install FastApi and its server
pip install fastapi
pip install "uvicorn[standard]"
# Install orjson for ORJSONResponse
pip install orjson
- Start the backend server using
uvicorn main:app --reload
- Click SEARCH on the main page.
- Choose Sentiment or Topic or both of them from the dropdown lists.
- Type keyword in Keyword Search. (optional)
- Then click SEARCH button to show the results.