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

Add PosNegIrony transformer and demo #207

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

danielbotros
Copy link

@danielbotros danielbotros commented Dec 12, 2023

Description

This change adds the PosNegIrony transformer based on the theory described in Linda Hutcheon's paper The Complex Functions of Irony and a demo using the r/Ohio and r/Cleveland subreddit corpus'. The transformer uses a sentiment-based approach, categorizing ironic utterances by the statistical deviation from the mean sentiment of the corpus. Then it applies a simple rule-based approach to categorize an ironic utterance as positive or negative irony by taking a measure of the sentiment of the comment itself and its replies.

New PR to merge forked branch instead of forked master.

Motivation and Context

This new transformer aims to capture and score the linguistic/literature theory of positive and negative irony. It requires the corpus to have utterances labeled with "/s" for ironic comments, so it is primarily for subreddit / Reddit corpus'.

How has this been tested?

This has been tested locally in a Jupyter Notebook using the demo code provided.

Other information

This was made in part of the requirement of A8 of INFO 4350.

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.

None yet

1 participant