Skip to main content

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

reflective_listening-0.1.3.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reflective_listening-0.1.3-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file reflective_listening-0.1.3.tar.gz.

File metadata

  • Download URL: reflective_listening-0.1.3.tar.gz
  • Upload date:
  • Size: 4.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2

File hashes

Hashes for reflective_listening-0.1.3.tar.gz
Algorithm Hash digest
SHA256 10f9a01114a85ca42d6a08b3ab72c756993c6360fd2c94c4b1abd42435bec4dc
MD5 b0fc4531b7cc95f4fb27bfda52fae913
BLAKE2b-256 c73ddd01e69893387c66ac4b427eb626fbefe1aea3ba7726c4219927687c28f9

See more details on using hashes here.

File details

Details for the file reflective_listening-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: reflective_listening-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.2

File hashes

Hashes for reflective_listening-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8309e24bd2f55fcc34f779f58c0a572bdc9e4a26e1d77f52d3e4b6ff9fb41af6
MD5 c62899c0a28ee0ae88ea11d16971ad56
BLAKE2b-256 b481ddf3d1559655a8e96be80176abb64003455c9538163afbf6f8036704a79b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page