Skip to main content

Carter Offline Non-PyTorch

Carter Offline is an intent classifier which is based on Janex: Python Edition, and utilises LazyLyrics' Carter-Py library.

This particular implementation of C-O is designed to run without being dependent on PyTorch, which sacrifices some level of accuracy, but can be run on hosting providers that don't support PyTorch freely.

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.

This is based on an older version of Janex (release 0.0.5.beta, specifically), and so it may not include the latest features from there unless explicitly added in.

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 Carter-Offline-NonPT

Secondly, you need to import the library into your Python script.

from CarterOfflineNonPT 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.

intents_file_path, thesaurus_file_path, UIName, CarterAPI = "intents.json", "thesaurus.json", "YOUR CARTER AGENT'S NAME", "YOUR CARTER AGENT'S API"

input_string = "Hello!" # for example

User = "YOUR NAME"

# Create an instance of the CarterOffline class

CarterOffline = CarterOfflineNonPT(intents_file_path, thesaurus_file_path, UIName, 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 = CarterOffline.SendToCarter(input_string, User)

print(ResponseOutput)

Metadata

Release files for Carter-Offline-NoPT 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Carter-Offline-NoPT 1.0.2
File Size Uploaded Provenance Actions
Carter-Offline-NoPT-1.0.2.tar.gz 4.4 kB Without provenance Details for Carter-Offline-NoPT-1.0.2.tar.gz

Release files / Carter-Offline-NoPT-1.0.2.tar.gz

Download URL Carter-Offline-NoPT-1.0.2.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
b9b25175189867339e3315d7c41a7dfb27d01ab8cb206a19eb60b63e34ada8a7
BLAKE2b-256 checksum
How to use checksums
b62b79d97107df7a98d586351cde5b21283d6d7625f782eaaf156e72d595a4d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.4

Security for Carter-Offline-NoPT 1.0.2

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.

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page