Skip to content

Facebook Weather chatbot using nltk and pyowm weather api provider.

License

Notifications You must be signed in to change notification settings

ahmednabil950/Messenger-Weather-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Messenger-Weather-Bot

Facebook Weather chatbot using nltk and pyowm weather api provider.
Try It !!

















How it works ?


In this project i didn't use any framework like Dialogflow. The project contains agents that can process the text and recognize entities from it like (time, country, city, places, location....etc), So for the limitation of this task (Weather Forecast) it only extract places and locations entity, then send it to weather agent that contact weather api provider PyOWM for further reading in its documentation check this out.

The approach of implementing this chatbot is the knowledge based approach in which the agent have knowledge about the question and the answer of the user with some predefined functions and actions accordingly.


NLTK


NLTK contains over 50 corpus which you can interacts with pretrained models with lexical resources whic you can use friendly in most information extractions tasks. I used nltk ne_chunk pos tags for NER(Named Entity Recognition), although it doesn’t have a proper English corpus for NER. It has the CoNLL 2002 Named Entity CoNLL but it will do pretty good for our task.


Deployment


The backend services of this project is deployed on Heroku