Skip to content

Add optional DistilBERT sentiment pipeline (non-breaking)#44

Open
agentksimha wants to merge 4 commits intohumanai-foundation:mainfrom
agentksimha:refactor/optional-transformer-method
Open

Add optional DistilBERT sentiment pipeline (non-breaking)#44
agentksimha wants to merge 4 commits intohumanai-foundation:mainfrom
agentksimha:refactor/optional-transformer-method

Conversation

@agentksimha
Copy link
Copy Markdown

Description:

Introduces an optional DistilBERT-based sentiment analysis using HuggingFace pipeline
Controlled via use_distilbert flag (default: False) → no impact on existing behavior
Keeps VADER as primary sentiment source; DistilBERT acts as an additional signal
Appends distilbert_sentiment to output without modifying existing fields or logic
Lightweight integration with minimal code changes and zero disruption to current pipeline

Why:

Improves robustness of sentiment detection (especially for nuanced text)
Enables easy experimentation/ablation without affecting production flow

Impact:
Backward compatible
No changes to existing outputs unless explicitly enabled
Minimal overhead when disabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants