University: University of Malaya Programme: Bachelor of Computer Science Course: WIA2005 Algorithm Analysis and Design Year: 2nd year / 4th semester
Customer who needs to make a delivery needs to know which courier company can does it fast (assuming that the shorter the distance, the quicker is the delivery). The application will analyse five (5) local courier companies which have their delivery hubs located in various locations in West Malaysia. The details of the courier companies and their delivery hubs are given in Table 1.
Shortest distance travelled does not mean that the courier company is the most recommended option for customer to use. A sentiment analysis of the related news articles about the courier company must be conducted.
Customers need to be able to choose the best courier company based on the distance as well as the result of sentiment analysis of related online articles.
Assuming that video or audio from the news or customer feedback will be used to provide sentiment insights in the future, Dynamic Time Warping (DTW) is one of the algorithms that can potentially be used. Explain the concept of DTW and demonstrate the implementation of DTW in analysing a video or an audio. For example, given the following video (https://www.youtube.com/watch?v=ZwVFj8CfFeE), identify some words, for example “J&T”, “memohon” and “maaf”.
- Create venv with the name venv
py -m venv venv- Activate venv
venv\Scripts\activate- Install required libraries
py -m pip install -r requirements.txt- Provide your own api key & database URI
a. Go toinstance\config_ex.pyfile
b. Add Mongo database URI (MONGO_URI)
c. Add Google Direction API key (GOOGLE_API_KEY)
d. Rename the file toconfig.py
e. Go tocore\templates\index.htmlfile, line 27 - 28
f. Insert the Google Map API key
- Using CMD
venv\Scripts\activate
set FLASK_APP=core
set FLASK_ENV=development
flask run- Using Power Shell
venv\Scripts\activate
$env:FLASK_APP = "core"
$env:FLASK_ENV = "development"
flask run
