Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
hmnshudhmn24
/
emotion-shift-detector
like
1
Text Classification
English
python
emotion-detection
emotion-analysis
conversation-analysis
affective-computing
explainable-ai
License:
apache-2.0
Model card
Files
Files and versions
xet
Community
main
emotion-shift-detector
/
src
/
shift_detector.py
hmnshudhmn24
Upload 28 files
36e43c0
verified
13 days ago
raw
Copy download link
history
blame
contribute
delete
Safe
136 Bytes
class
ShiftDetector
:
def
detect
(
self, e
):
return
[{
'from'
: e[i-
1
],
'to'
: e[i]}
for
i
in
range
(
1
,
len
(e))
if
e[i] != e[i-
1
]]