Welcome to my conversational chatbot! Ask it some questions.
Note: It is not designed to operate like GPT-3, rather to talk with you. Try asking 'how are you'.
Type
'sentiment' to perform sentiment analysis.
How about
'rate' and it will rate your movie (data gleaned from IMDb database)
Or even
'rate movie' and it will rate your movie
Or perhaps
'weather in city country'
Perhaps you could try 'search query' to search wikipedia for query
Example:
😃 -- rate
🤖 -- Ok, which movie should I rate?
😃 -- hunger games
🤖 -- Please wait while your result is computed...
🤖 -- Personally, I loved it. Released in 2015, the Sci-fi film recieved 68/100 on Rotten Tomatoes and 7.2/10 on IMDb.
If it doesn't recognise your input, it will return the top Google search response if it is a question
Or else say some ambiguous phrases
It can also evaluate maths problems
The weather API only works if your provide a country too (it's the only decent free one)
However, you can also search with IP addresses, so its a trade-off.
A basic chatbot
Things it can do
- Do maths problems
- Search google for questions
- convert units
- rate movies
- ask how you are
- get the current weather
- Get page summaries from wikipedia
- greet you
Ways to access
- Web interface (flask)
- CLI (vanilla Python)
Known Limitations
- BODMAS/BIDMAS not always applied
- Google scraping a bit vunerable
Install (OS agnostic)
Reqs
- Python
- requirements.txt
pip install werdl-chat
Get chatting
- New file
from werdl-chat import *
chat()
Thanks to the following modules:
- bs4 (html parsing)
- requests (HTTP requests)
- lxml (html parsing)
- textblob (spell checking)
- imdbpy (IMDb API)
- semantic3 (unit conversion)
- clrprint (debugging)
- mathparse (maths equation)
- gunicorn & flask (website)
- wikipedia (wikipedia parsing)
And the following web-based APIs:
- WeatherAPI.com
- google.com (self-coded 'API')
- https://en.wikipedia.org/w/api.php