- Project Setup
- Project Description
- Project Documentation
- Unit Tests
- Assignment 4 Documentation
- Assignment 4 New Features
- New Methods
- Contributors
- Presentation
Pre-requisites - Install the latest version of Python on your computer (Python3 is strongly recommended), and the package management system (PIP). After cloning the repository to your computer, follow these steps to launch the program:
Step 1: Open the repository in your IDE (Visual Studio Code is recommended).
Step 2: Open your Powershell command line tool.
Step 3: Create a virtual environment by running the following command:
python -m venv venv
Step 4: Run a virtual environment by running the following command:
./venv/Scripts/activate.ps1
Step 5: Run the following to command to install all necessary dependecies:
pip install -r requirements.txt
Step 6: Start the program by running this command:
python app.py
Step 2: Open a terminal in your VSCode by going to Terminal > New Terminal
Step 3: Run the following to command to install all necessary dependecies:
pip install -r requirements.txt
Step 4: Start the program by running this command:
python3 app.py
The project was created for the UBC Okanagan third year level course.
Psych Bot's goal is to give the user psychological advice*. This bot serves as an interactive conversational agent that takes the user's input (a sentence) and outputs an appropriate response. As this assignment does not require Machine Learning implementation, the chatbot may provide a reply that may not relate to the user's prompt.
*For legal reasons, neither the bot nor developers are certified to provide medical help.
- Project Plan Document
- Word Breakdown Structure
- Gantt Chart
- Network Graph/Branch & Commits
- Unit Test Documentation
- API Documentation
Step 1: Open your Powershell command line tool.
Step 2: To run the unit test in the Bot class run this command:
python tests/bot.test.py
Step 3: To run the unit test in the FileReader class run this command:
python tests/fileReader.test.py
Step 1: Open a terminal in your VSCode by going to Terminal > New Terminal
Step 2: To run the unit test in the Bot class run this command:
python3 tests/bot.test.py
Step 3: To run the unit test in the FileReader class run this command:
python3 tests/fileReader.test.py
>The bot is able to understand the users language and respond in the langauge of the user, using googletrans API.
Language : English | Language : Finnish | Language : Chinese |
![]() |
![]() |
![]() |
>User can interact with the bot and get information directly from wikipedia based off of the users input in any language.
English Link to a Wikipedia page | ||
![]() |
![]() |
![]() |
Both the API's were integrated together so you can use wikipedia in any language.
Different Languages using Wikipedia | |
![]() |
![]() |
API Documentation file has more information regarding the uses and functionality of each of the API's.
A4: getLang function This function will get the language the user is using based on google translates certainty determining function and will return the language back to the bot.
A4: responseTranslate function This function will take in the users response and translate it to english so the response can be understood by the correct node.
A4: transNode function This function takes in the responce the bot will answer with and the users language that was determined from the getLang function and will translate the bot's response to the users language.
https://drive.google.com/file/d/1-9s3aBWBw8l101RgClK3metLziD5P6yQ/view