Skip to main content

Core NLP library for extracting and analysing emotion and group dynamics in a group setting.

Project description

nlp-emotion-analysis-core

Core NLP library for extracting and analysing emotion and group dynamics in a group setting.

Key functionalities

1. Emotion extraction

Emotion extraction is based the eight basic emotions model proposed by Plutchik[1]. The extraction is based on a vocabulary curated using wordembedding models. Online conversations related to health were used to train the word embedding model which capture the contextual relationships among terms. The trained model is then used to query for similar terms. Scripts to train the word embedding model, query for similar terms and visualizations are included in core/emotions/ folder. Emotion extraction is enriched with handling negation, intensifiers and is able to calculate the intensity of each emotion.

Image retrieved from [2].

2. User enagagement measures

User engagement in a group is measured based on two main components: i. Emotion enagagement ii. Participation based on number of posts etc.

3. Clinical information extraction

Clinical information can be extracted using a curated vocabulary of clinical terms. Physcial symptom extractor is added as a demonstration.

4. Keyphrase extraction

Keyphrase extraction is based on RAKE [3], which automatically extracts significant phrases from text.

Examples for emotion extraction, physical symptoms extraction and keyphrase extraction are included in the main.py

References:

[1] Plutchik, R. (1984). Emotions: A general psychoevolutionary theory. Approaches to emotion, 1984, 197-219.

[2] Retrieved from: https://www.researchgate.net/profile/Gerardo_Maupome/publication/258313558/figure/fig1/AS:297350959517696@1447905401049/Plutchiks-wheel-of-emotions-with-basic-emotions-and-derivative-emotions-and-cone-like.png

[3] Rose, S., Engel, D., Cramer, N., & Cowley, W. (2010). Automatic keyword extraction from individual documents. Text mining: applications and theory, 1, 1-20.

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

nlp-emotion-analysis-core-0.0.3.tar.gz (27.7 kB view details)

Uploaded Source

Built Distribution

nlp_emotion_analysis_core-0.0.3-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file nlp-emotion-analysis-core-0.0.3.tar.gz.

File metadata

File hashes

Hashes for nlp-emotion-analysis-core-0.0.3.tar.gz
Algorithm Hash digest
SHA256 3ec435b727da550e32c131bb0e17947f66936301f4eb54b227838185cbee68a4
MD5 1504ae9b02bdf4efe178fdcc5c363693
BLAKE2b-256 a72f6a2bd8925ffdef52208d570c613bded33f3b7c00f2af90b9142e5fdd8f93

See more details on using hashes here.

File details

Details for the file nlp_emotion_analysis_core-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nlp_emotion_analysis_core-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f985b471275a830aa9641fa73b4fe07d75b6e69d1455cd5827010227e7900ebc
MD5 c1f723485e874287ad6a759177988695
BLAKE2b-256 08583dc45ff23ee1c81c01e8f8d9693c0c124c2d47f5a9e90d5208c8963a6f72

See more details on using hashes here.

Supported by

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