No project description provided
Project description
Carter Offline
Carter Offline is an intent classifier which is based on a modified version of Janex, and utilises LazyLyrics' Carter-Py library.
It compares the input you send to your carter agent with a list of patterns in your chosen intents file, and then remembers the class. Once your Carter agent creates a response, the program saves the response to your intents, recording the interaction and improving your intents dataset.
See also:
https://github.com/LazyLyrics/carter-py
https://github.com/Cipher58/Janex
How to use
Adding to your project
Firstly, you'll need to install the library using the Python pip package manager.
python3 -m pip install CarterOffline
Secondly, you need to import the library into your Python script.
from CarterOffline import *
Using Carter-Offline in your code
Define Variables
To use this program, you will need to define your API key, name and intent file path.
CarterAPI = "YOUR CARTER AGENT'S API"
input_string = "Hello!" # for example
User = "YOUR NAME"
# Create an instance of the CarterOffline class
CarterOffline = CarterOffline(intents_file_path, CarterAPI)
Speak to your agent
Here is the simple bit of code that sends the message to your Carter agent using the Carter-Py library, and then uses the Janex code to classify it, and save it to your intents file.
ResponseOutput = SendToCarter(CarterAPI, input_string, User)
print(ResponseOutput)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for Carter_Offline-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 781c53ad353685c63e2eeeeb76cf9e7203a44add6610fbde8e34de862eb17770 |
|
MD5 | 440feaf9d7e2df99d224b55c693c7221 |
|
BLAKE2b-256 | f5ab0603bcbf3dd825bbcb179e732a6a207e996e4448587247b0c32f8072425c |