Skip to main content

iokobot is a python library to help you make a smart bot, using machine learning algorithm

Project description

iokobot

iokobot is a python library for help you to create a bot easly. We use machine learning algorithm to develop this bot

Installation

pip3 install iokobot

or

git clone https://github.com/rizki4106/iokobot.git
cd iokobot && pip3 install -r requrements.txt

How to use

This bot need training data for learn what should answer returned. you can use your own training data but make sure your data saved as csv file and on csv file there are two columns, first columns is the questions and second column is the answer, look at example below.

questions answers
what is computer ? A computer is a machine that can be instructed to carry out sequences of arithmetic or logical operations automatically via computer programming
what is programming language ? programming language is a formal language comprising a set of instructions that produce various kinds of output. Programming languages are used in computer programming to implement algorithms
from iokobot import BotBody

bot = BotBody()
bot.fit("training.csv")
pred = bot.predict("What is programming language ?")

score = bot.score()

print(pred)
print(score)
No Name Description
1 predict get the answer from the bot
2 score similarity score between your question and training data. this score from range -1 and 1. -1 is perfect different and 1 is perfect same

notice

this bot will answer the questions based on similarity questions on training data, if you have more training data that would be better

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iokobot-0.6.tar.gz (3.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page