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
Metadata
Release files for iokobot 0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| iokobot-0.7.tar.gz | 3.2 kB | Without provenance | Details for iokobot-0.7.tar.gz |
Release files / iokobot-0.7.tar.gz
| Download URL | iokobot-0.7.tar.gz |
|---|---|
| Size | 3.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
15164255ac56ceb276e6653f630b524ca629c6cfa6cb4b848df11d9915a03ff1
|
|
BLAKE2b-256 checksum How to use checksums |
ef0de75f5a1703631339316378719125f22fdb1f739fb80b19bec699535c1667
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for iokobot 0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.