A symbolic drift detection and tone deviation engine that listens like a human would β tracking not just sentiment, but meaning breaks, symbolic conflict, and emotional escalation.
-
π¦ Install via PyPI:
pip install lloyd-drift-demo==0.1.0
β View on PyPI -
π Live Demo (Streamlit):
https://tinyurl.com/Lloyd-demo
LLOYD isnβt another sentiment classifier.
Itβs a drift-aware analyzer that tells you when a conversation turns β emotionally, symbolically, or relationally.
From sarcastic reversals to performative breakdowns, LLOYD is designed to detect subtle shifts in tone that traditional NLP often misses.
β
Calibration is limited, but customizable.
LLOYD is lightly tuned, but designed for adaptation to domain-specific tone models.
β
Work-in-progress with feedback welcome.
This is an active project β contributions, questions, and use-case tests are encouraged.
Contact: putmanmodel@pm.me
LLOYD doesnβt just label tone β it listens like a person, tracking symbolic shifts, emotional slope, and layered meaning.
Hereβs how it stacks up:
| Tier | Model Type | Capabilities | Notes |
|---|---|---|---|
| π© LLOYD | Symbolic Drift Engine | Emotional drift scoring, override logic, symbolic pattern detection, sarcasm flags, badges | β Built for human-level nuance and meaning tracking |
| π¨ Mid-Level | Sentiment Classifier | Polarity scoring, intensity detection | |
| π₯ Legacy | Keyword Matcher | Token triggers, emotion word lists | β Fails on nuance, symbolic inversion, or context |
π’ LLOYD hears the difference between "Great job" and "Great job..."
π΄ Others just check for "positive" or "negative."
Please note: LLOYD is already scaffolded for Drift Memory and short-term tone weighting β
this table excludes those in-progress features until the official demo drops.
β¨ Itβs better β and itβs not even done yet.
- Symbolic override detection (
"Great job...","You helped?") - Emphasis escalation tracking (
ALL CAPS,!!!, emoji floods) - Drift memory modeling to detect emotional pressure buildup
- Mirror match and mocked echo detection
- Output includes rationale, badge label, override label
pip install lloyd-drift-demo==0.1.0 python devtools/run.py
Sample output:
Badge : π³ override: emphasis_override
πΉ [sarcasm_hint]
Baseline : Great job.
Incoming : Great job...
Drift : True
Label : sarcasm_hint
Ξ : 80
Rationale: Trailing or embedded sarcasm marker detected.
Launch the visual interface:
streamlit run devtools/sandbox_demo/app/app.py
Try this real example:
Baseline : Why wasnβt this done earlier?
Incoming : You are garbage.
Drift : True
Label : hostile_emphasis
Ξ : 92
Badge : π³ override: hostile_emphasis
Rationale: Intensified hostile language detected β override triggered.
Baseline : Why wasnβt this done earlier?
Incoming : I had to take out the garbage.
Drift : False
Label : neutral
Ξ : 5
Badge : none
Rationale: No drift detected β response remains within expected symbolic frame.
This plot captures real drift data across a conversation, showing:
- Ξ tone changes turn by turn
- Sudden spikes in emotional pressure
- Contextual difference between neutral and hostile replies
- Future use of short-term memory to weight recent drift and override impact
Scaffolding is already in place for a future interactive demo that showcases:
- Short-term memory tracking across turns
- Escalation detection (e.g., passive β sarcastic β hostile)
- Override arbitration with memory decay
- Field responsiveness (proactive vs. reactive tone shifts)
Prototype logic lives in:
src/lloyd_drift_demo/engine/drift_memory.py
Users can modify:
DRIFT_THRESHOLD(default = 0.15)- Emphasis override sensitivity
- Symbolic override rules
Feedback is welcome for future tuning.
You can copy and paste full Python files into ChatGPT to get live analysis, refactors, and debugging help β just like a pair programmer.
β
Totally legal β as long as itβs your code (or permissively licensed)
β
Session-aware β ChatGPT can remember your pasted files for the whole conversation
β
No training risk β Your code stays private; nothing is used to train the model
π LLOYD_Language_Engine/
βββ README.md
βββ media/
β βββ graph.png
βββ src/
β βββ lloyd_drift_demo/
β βββ engine/
β βββ drift_utils_v2.py
βββ demos/
β βββ sandbox_demo/
β βββ app/
β βββ app.py
- Python 3.11+
pip install -r requirements.txt
This is an active research project.
Feedback, testing, and conceptual contributions welcome.
π¬ Contact: putmanmodel@pm.me
π§΅ Twitter/Reddit: @putmanmodel
- Built on top of the excellent GoEmotions dataset from Google Research
- Special thanks to the community at r/datasets for sharing valuable resources and inspiration
- And to Lloyd, my brother β whom I "accidentally" named this project after
Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
Use, modify, and remix freely β just donβt sell it.
"Most sentiment systems end with polarity. LLOYD starts with meaning."