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.7.tar.gz (3.2 kB view details)

Uploaded Source

File details

Details for the file iokobot-0.7.tar.gz.

File metadata

  • Download URL: iokobot-0.7.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.9.1

File hashes

Hashes for iokobot-0.7.tar.gz
Algorithm Hash digest
SHA256 15164255ac56ceb276e6653f630b524ca629c6cfa6cb4b848df11d9915a03ff1
MD5 98d24b35417825361bd897e42b5793b0
BLAKE2b-256 ef0de75f5a1703631339316378719125f22fdb1f739fb80b19bec699535c1667

See more details on using hashes here.

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