Coder Social home page Coder Social logo

chatbot's Introduction

A text-based learning robot.

I've been working on a chatbot on and off for about 11 years, and while I've made a lot of progress, there's a great deal of work left to do. I was thinking that if this was a group project, development would pick up speed considerably, plus it could be more fun to work on. I'd like see if there's any interest out there.

I wanted to make a chatbot that is better than the AIML types. Something that would pay attention to who it was talking to and try to learn from that person. It would not guess at an answer when it has no understanding of that was said. If it doesn't understand, it will explain why and ask for information in an attempt to understand. What it learns can be applied later in the conversation and with other users.

About this program

  • This is a text based robot with learning as the main emphasis
  • It tends to try to learn about the people it talks to and the world in general
  • Its database relies on a classification of basic knowledge
  • It uses templates to interpret sentences
  • Only certain types of words are allowed to fit in the templates
  • It keeps track of the people that talk to it
  • It starts out with simple features and is expandable
  • ID numbers are used identify specific members of a category, usually people could also be pets, buildings database entries start with a number sign followed by the id number

Short term goals

All of these are working to some extent

  • Will expect to know who it's talking to
  • Will remember elements of conversations
  • Will try to use people to expand it's knowledge
  • Will try to make sense of every part of a sentence and will reject any word it can't make sense of.

Long term goals

  • Will form opinions of the people it talks to
  • Will initiate conversation if the user doesn't
  • Will be thinking of various things when it's not in a conversation. This activity may have an effect on its mood, may cause it to arrive at some conclusions. It may be prompted to ask related questions. It can be asked "what are you thinking about".

The database

The database is working. It's a text file called general.txt. Information is stored as a list of key-value pairs, one pair per line. The key is a series of increasingly specific keywords separated by the ">" character. Any information that is gathered during user sessions gets added to the end of the file. Specific entities such as "ronald" or "my computer" are given ID numbers.

There is a set of functions for easy access to it.

  • db_check - checks to see if a word is in the database
  • db_lookup - give it a key and it returns a value
  • db_add_pair - adds an item to the database
  • db_root_check - checks if a word belongs to the specified class(is a subset of)
  • db_get_id - looks up a persons first name and returns their ID number
  • db_next_available_id - provides an unused id number to be used when adding a new person (or any other specific entity) to the database

Limitations

  • Only full sentences
  • No pronouns, adjectives or adverbs
  • No figures of speech
  • No slang
  • No compound sentences (example: "Hi, how are you")
  • Ignores multiple meanings

Programming details

  • Language: C
  • Editor: Code::Blocks
  • Compiler: GCC
  • Platform: Windows console

What I need help with

  • Clearer and more complete documentation
  • Clearer code
  • The various issues in the issue list
  • Ideas in general

See "Issues" for a list of things that need to be worked on.

To run this software on windows, place all the files in a folder and double-click on chat.exe. For other platforms, you'll need to do a little editing and compile.

chatbot's People

Contributors

philparadis avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.