Skip to content

Commit

Permalink
replace trope_2_cat with static string
Browse files Browse the repository at this point in the history
  • Loading branch information
ander1119 committed Jun 3, 2024
1 parent 8c124e8 commit bcc13da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import json
from sklearn.metrics import precision_recall_fscore_support

trope_2_cat = json.load(open('../tropes/map_trope_cat.json', 'r'))
trope_2_cat = {'Big Bad': 'Character Trait', 'Jerkass': 'Character Trait', 'Faux Affably Evil': 'Character Trait', 'Smug Snake': 'Character Trait', 'Abusive Parents': 'Character Trait', 'Would Hurt a Child': 'Character Trait', 'Action Girl': 'Character Trait', 'Reasonable Authority Figure': 'Character Trait', 'Papa Wolf': 'Character Trait', 'Deadpan Snarker': 'Character Trait', 'Determinator': 'Character Trait', 'Only Sane Man': 'Character Trait', 'Anti-Hero': 'Character Trait', 'Asshole Victim': 'Character Trait', 'Jerk with a Heart of Gold': 'Character Trait', 'Even Evil Has Standards': 'Character Trait', 'Affably Evil': 'Character Trait', 'Too Dumb to Live': 'Character Trait', 'Butt-Monkey': 'Character Trait', 'Ax-Crazy': 'Character Trait', 'Adorkable': 'Character Trait', 'Berserk Button': 'Character Trait', 'Ms. Fanservice': 'Character Trait', 'The Alcoholic': 'Character Trait', 'Disappeared Dad': 'Character Trait', 'Would Hit a Girl': 'Character Trait', 'Oh, Crap!': 'Role Interaction', 'Driven to Suicide': 'Role Interaction', 'Adult Fear': 'Role Interaction', 'Not So Different': 'Role Interaction', 'Heroic BSoD': 'Role Interaction', 'Big \\"NO!\\"': 'Role Interaction', 'Eye Scream': 'Role Interaction', 'Gory Discretion Shot': 'Role Interaction', 'Impaled with Extreme Prejudice': 'Role Interaction', 'Off with His Head!': 'Role Interaction', 'Disney Villain Death': 'Role Interaction', 'Your Cheating Heart': 'Role Interaction', '\\"The Reason You Suck\\" Speech': 'Role Interaction', 'Tempting Fate': 'Role Interaction', 'Disproportionate Retribution': 'Role Interaction', 'Badass Boast': 'Role Interaction', 'Groin Attack': 'Role Interaction', 'Roaring Rampage of Revenge': 'Role Interaction', 'Big Damn Heroes': 'Role Interaction', 'Heroic Sacrifice': 'Role Interaction', "Screw This, I'm Outta Here!": 'Role Interaction', 'Kick the Dog': 'Role Interaction', 'Pet the Dog': 'Role Interaction', 'Villainous Breakdown': 'Role Interaction', 'Precision F-Strike': 'Role Interaction', 'Cluster F-Bomb': 'Role Interaction', 'Jerkass Has a Point': 'Role Interaction', 'Idiot Ball': 'Role Interaction', 'Batman Gambit': 'Role Interaction', 'Police are Useless': 'Situation', 'The Dragon': 'Situation', 'Cool Car': 'Situation', 'Body Horror': 'Situation', 'The Reveal': 'Situation', 'Curb-Stomp Battle': 'Situation', 'Cassandra Truth': 'Situation', 'Blatant Lies': 'Situation', 'Crapsack World': 'Situation', 'Comically Missing the Point': 'Situation', 'Fanservice': 'Situation', 'Fan Disservice': 'Situation', 'Brick Joke': 'Situation', 'Hypocritical Humor': 'Situation', 'Does This Remind You of Anything?': 'Situation', 'Black Comedy': 'Situation', 'Irony': 'Situation', 'Exact Words': 'Situation', 'Stealth Pun': 'Situation', 'Bittersweet Ending': 'Story Line', 'Karma Houdini': 'Story Line', 'Downer Ending': 'Story Line', 'Laser-Guided Karma': 'Story Line', 'Earn Your Happy Ending': 'Story Line', 'Karmic Death': 'Story Line', 'Nice Job Breaking It, Hero!': 'Story Line', 'My God, What Have I Done?': 'Story Line', 'What the Hell, Hero?': 'Story Line', 'Hope Spot': 'Story Line', 'Heel Face Turn': 'Story Line', 'Took a Level in Badass': 'Story Line', "Chekhov's Gun": 'Story Line', 'Foreshadowing': 'Story Line', "Chekhov's Skill": 'Story Line', "Chekhov's Gunman": 'Story Line', 'Red Herring': 'Story Line', 'Ironic Echo': 'Story Line', 'Hoist by His Own Petard': 'Story Line', 'Meaningful Echo': 'Story Line', 'Freudian Excuse': 'Story Line'}

def parse_args():
parser = argparse.ArgumentParser()
Expand Down

0 comments on commit bcc13da

Please sign in to comment.