How smit-savaliya-dev/beyond-keywords-emotion-aware-rec-sys works
This research project tests whether matching a reader’s recent emotional interests to article emotion improves news ranking. Its central workflow prepares MIND click histories and article text, derives article emotion features and reader-relative matches, compares rankers with and without those features, and evaluates paired results. The README documents additional validation, behavioral analyses, robustness controls, and reporting capabilities. Relationships are grounded in the README and shown source references; unsampled implementation details are represented only at supported subsystem level.
Main entry points: congruence.py Reader profiles · evaluate.py Model evaluation · lightgbm_ranker.py LightGBM ranker · mind.py MIND preparation
Components 23
Data preparation
- MIND preparation
src/data/mind.py - Research pipeline
src/utils/pipeline.py
Emotion features
- GoEmotions scoring
src/emotion/goemotions.py - NRC lexicons
src/emotion/lexicon.py - Article features
src/emotion/emotion_features.py - SemEval validation
src/emotion/semeval.py
Ranking models
- Reader profiles
src/ranking/congruence.py - Behavior features
src/ranking/behaviour.py - Popularity and TF-IDF
src/models/baselines.py - Sentence-BERT ranker
src/models/sbert.py - LightGBM ranker
src/models/lightgbm_ranker.py - Neural NRMS ranker
src/models/nrms.py - Combined ranking
src/ranking/fusion.py - Emotion re-ranker
src/ranking/emotion_rerank.py
Evaluation
- Model evaluation
src/evaluation/evaluate.py - Ranking metrics
src/evaluation/metrics.py - Paired statistics
src/evaluation/stats.py
Research analyses
- Click signal tests
src/evaluation/click_signal.py - Subgroup analysis
src/evaluation/subgroups.py - Results charts
src/utils/story_charts.py
Other components
- Researcher
- MIND click data
- Experiment results
Connections 27
- MIND click data → MIND preparation: prepares data
- MIND preparation → GoEmotions scoring: supplies article text
- GoEmotions scoring → Article features: scores text
src/emotion/emotion_features.py - NRC lexicons → Article features: adds lexicon features
src/emotion/emotion_features.py - Article features → Reader profiles: provides item vectors
- MIND preparation → Reader profiles: provides click history
- GoEmotions scoring → SemEval validation: validates scores
src/emotion/semeval.py - Reader profiles → LightGBM ranker: provides match features
src/models/lightgbm_ranker.py - Reader profiles → Sentence-BERT ranker: provides emotion match
src/models/sbert.py - Behavior features → LightGBM ranker: provides behavior features
src/models/ltr_v6.py - Popularity and TF-IDF → LightGBM ranker: supplies baseline scores
src/models/lightgbm_ranker.py - Popularity and TF-IDF → Sentence-BERT ranker: provides baseline rankers
- Reader profiles → Emotion re-ranker: provides emotion match
- Sentence-BERT ranker → Emotion re-ranker: reranks candidates
- Neural NRMS ranker → Combined ranking: blends model scores
- LightGBM ranker → Combined ranking: blends model scores
- LightGBM ranker → Model evaluation: submits scores
src/models/lightgbm_ranker.py - Model evaluation → Ranking metrics: computes metrics
src/evaluation/evaluate.py - Model evaluation → Experiment results: writes predictions and metrics
src/evaluation/evaluate.py - Model evaluation → Paired statistics: compares model results
src/evaluation/final_eval.py - Reader profiles → Click signal tests: tests congruence signal
src/evaluation/click_signal.py - Click signal tests → Paired statistics: tests significance
src/evaluation/click_signal.py - Model evaluation → Subgroup analysis: feeds subgroup analysis
src/evaluation/subgroups.py - Experiment results → Results charts: supplies chart results
- Researcher → Research pipeline: runs experiments
- Research pipeline → MIND preparation: orchestrates steps
- Research pipeline → Experiment results: produces research outputs