Skip to content

Are you feeling bored? Well never again because! Our little digital friend Sophie is here for you to talk. Ask her questions, tell her about yourself and she will listen and interact with you always.

Notifications You must be signed in to change notification settings

annu12340/sophie-the-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

SOPHIE 🤖

Are you feeling bored? Well never again because! Our little digital friend Sophie is here for you to talk. Ask her questions, tell her about yourself and she will listen and interact with you always.

Table of Content

About Project

This is a simple Messenger program implemented using NLTK (Natural Language Toolkit).NLTK has a module, nltk.chat, which simplifies building these talk bots by providing a generic framework.

Demo

 Sophie :  Hi there, I'm Sophie, the chat bot.  
			 Type  quit to leave 


 Sophie :  May I know your good name ?

 You:  abhay
 Sophie : Mmmm...
		 That is a great name
 Sophie : Hey abhay  would you like to know more about your name?
			(y or n)

 You : y
.... Please wait while I analysis your personality ....


 Sophie :  People with the name  *  abhay  * generally have the following personsality 
 

Abhay is a kind of guy who puts his friends among all. He can do anything for his friends. 
He is a sportsman he loves to play football and cricket. He is usually confused about love 
because he loves a that girl which everyone is jealous of because of her looks. 
Abhay has a great height and body and he looks very handsome. Abhay doesn&apost give damn to other girls 
because the girl he likes is beautiful like a white rose, and they both have many things in common.
Abhay is a family lover but loves his sister more than his brother. He is the kind of guy who doesn&apost drink or smoke.
A perfect and charming guy for everyone out there . He will be happy in his life if he
marries love of his life the white rose like looking girl of his school. Abhay is confused and misunderstands everytime.
YOu: tell me a joke
Sophie: PUPIL: Would you punish me for something I didn`t do?
        TEACHER: Of course not.
        PUPIL: Good, because I haven`t done my homework.

Built With

  • Python

Libraries Used

  • urllib.request

    The urllib.request module defines functions and classes which help in opening URLs (mostly HTTP) in a complex world— basic and digest authentication, redirections, cookies and more.

  • bs4 (Beautiful Soup)

    Beautiful Soup is a library that makes it easy to scrape information from web pages. It sits atop an HTML or XML parser, providing Pythonic idioms for iterating, searching, and modifying the parse tree.

  • csv (Comma Separated Values)

    csvThe csv module implements classes to read and write tabular data in CSV format. It allows programmers to say, “write this data in the format preferred by Excel,” or “read data from this file which was generated by Excel,” without knowing the precise details of the CSV format used by Excel. Programmers can also describe the CSV formats understood by other applications or define their own special-purpose CSV formats.

  • nltk (Natural Language Toolkit) The Natural Language Toolkit (NLTK) is a Python package for natural language processing. NLTK requires Python 3.5, 3.6, 3.7, or 3.8.

Getting Started

Installation

This is an example of how to list things you need to use the software and how to install them.

  • Fork & Clone the repo
git clone https://github.com/annu12340/sophie-the-bot.git
  • Navigate through the project
cd sophie-the-bot
  • Install all requirements
pip install -r requirements.txt
  • Run :
python3 chat bot.py

Now just enjoy the chats with Sophie.

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

About

Are you feeling bored? Well never again because! Our little digital friend Sophie is here for you to talk. Ask her questions, tell her about yourself and she will listen and interact with you always.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages