Thomas the Chatbot
Installation
Python 3.9+ is required
This package can be installed from PyPi with:
pip install thomasthechatbot
CLI
Type ttc to begin talking to Thomas.
How does Thomas work?
I wrote a medium article to explain how Thomas works.
Usage
Basic Usage
from ttc import Chatbot, Context, download_nltk_data
# Only needs to be run once (can be removed after first run)
download_nltk_data()
# Creating the context
ctx = Context()
# Initializing the chatbot
chatbot = Chatbot()
talk = True
while talk:
msg = input("You: ")
if msg == "s":
talk = False
else:
# Getting the response
resp = chatbot.respond(ctx, msg)
# Saving the response to the context
ctx.save_resp(resp)
print(f"Thomas: {resp}")
# Saving the chatbot data
chatbot.save_data()
Configurations
chatbot = Chatbot(
path="brain",
learn=False,
min_score=0.5,
score_threshold=0.5,
mesh_association=0.5,
)
Contributing
Open to contributions, please create an issue if you want to do so.
Formatting
Metadata
Release files for thomasthechatbot 1.0.5
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 |
|---|---|---|---|---|
| thomasthechatbot-1.0.5.tar.gz | 8.3 kB | Without provenance | Details for thomasthechatbot-1.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| thomasthechatbot-1.0.5-py3-none-any.whl | Python 3 | none | any | Details for thomasthechatbot-1.0.5-py3-none-any.whl |
Total release size: 19.0 kB
Release files / thomasthechatbot-1.0.5.tar.gz
| Download URL | thomasthechatbot-1.0.5.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9524bc768c192f93edfb7800ccab29cc64b21ff2c1645f5e757a97a2fe44f624
|
|
BLAKE2b-256 checksum How to use checksums |
64e2c147bb1610db68591bfcb1e52ff665eb2d603835c2bb9675fd4de788ff5c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.11.0 Linux/5.15.0-1024-azure
|
Release files / thomasthechatbot-1.0.5-py3-none-any.whl
| Download URL | thomasthechatbot-1.0.5-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54cf7e1cf242240735f46f9b9ef73ae08c0ba5ec8f66d7a7229ff1716c89495f
|
|
BLAKE2b-256 checksum How to use checksums |
b8c65e11252ffd141eadae3e4da92f3e0682be546a2bbeb0e83b6fa98009f91a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.3.1 CPython/3.11.0 Linux/5.15.0-1024-azure
|
Security for thomasthechatbot 1.0.5
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.