Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix sentiment scaling issue with "but" conjunction #171

Merged
merged 2 commits into from
Nov 21, 2023

Conversation

KennethEnevoldsen
Copy link
Owner

@KennethEnevoldsen KennethEnevoldsen commented Nov 21, 2023

This pull request fixes a bug in the sentiment scaling function that occurs when the conjunction "but" is present in the text. The bug causes incorrect scaling of sentiment values before and after the "but" conjunction. The fix ensures that the sentiment values are correctly scaled based on the position of the "but" conjunction. This improves the accuracy of sentiment analysis in texts containing contrasting statements.

The pull request also includes a makefile that provides convenient commands for installation, linting, testing, and static type checking. The makefile allows developers to easily set up the project environment and perform common development tasks.

fixes #169

@KennethEnevoldsen KennethEnevoldsen merged commit 0c40613 into main Nov 21, 2023
18 checks passed
@KennethEnevoldsen KennethEnevoldsen deleted the add_analysis branch November 21, 2023 14:18
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.

Compound not taking into account all span polarities
1 participant