Reflective listening statements via paraphrase generation
Project description
Reflective Listening
This API generates reflective listening statements by way of paraphrasing. Reflective listening is one of the four techniques used in Motivational Interviewing, a counselling method commonly used to promote behavioural change.
Therapists use reflective listening to convey understanding of one's issue, demonstrating empathy, allowing the chatbot to engage the user better, build trust, and foster motivation to change in the person.
Example
This API allows conversational agents to reflectively listen to the user they're talking to. For example:
- User: "Today is a bad day, I'm feeling lonely"
- Chatbot's reflective listening response: "I understand, seems you are feeling lonely on a bad day."
Quickstart
Installation
pip install reflective-listening
How to use
from reflective_listening import ReflectiveListening
reflector = ReflectiveListening()
print(reflector.get_response("Today is a bad day, I'm feeling lonely"))
Output:
"I understand, seems like you are feeling lonely on a bad day."
Project details
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
Close
Hashes for reflective_listening-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 10f9a01114a85ca42d6a08b3ab72c756993c6360fd2c94c4b1abd42435bec4dc |
|
MD5 | b0fc4531b7cc95f4fb27bfda52fae913 |
|
BLAKE2b-256 | c73ddd01e69893387c66ac4b427eb626fbefe1aea3ba7726c4219927687c28f9 |
Close
Hashes for reflective_listening-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8309e24bd2f55fcc34f779f58c0a572bdc9e4a26e1d77f52d3e4b6ff9fb41af6 |
|
MD5 | c62899c0a28ee0ae88ea11d16971ad56 |
|
BLAKE2b-256 | b481ddf3d1559655a8e96be80176abb64003455c9538163afbf6f8036704a79b |