-
Notifications
You must be signed in to change notification settings - Fork 0
/
resources.py
74 lines (59 loc) · 5.15 KB
/
resources.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
from wikidata_connector import WikidataConnector
# Fixed Constants
OFFICIAL_AWARDS_1315 = ['cecil b. demille award', 'best motion picture - drama',
'best performance by an actress in a motion picture - drama',
'best performance by an actor in a motion picture - drama',
'best motion picture - comedy or musical',
'best performance by an actress in a motion picture - comedy or musical',
'best performance by an actor in a motion picture - comedy or musical',
'best animated feature film', 'best foreign language film',
'best performance by an actress in a supporting role in a motion picture',
'best performance by an actor in a supporting role in a motion picture',
'best director - motion picture', 'best screenplay - motion picture',
'best original score - motion picture', 'best original song - motion picture',
'best television series - drama',
'best performance by an actress in a television series - drama',
'best performance by an actor in a television series - drama',
'best television series - comedy or musical',
'best performance by an actress in a television series - comedy or musical',
'best performance by an actor in a television series - comedy or musical',
'best mini-series or motion picture made for television',
'best performance by an actress in a mini-series or motion picture made for television',
'best performance by an actor in a mini-series or motion picture made for television',
'best performance by an actress in a supporting role in a series, mini-series or motion picture made for television',
'best performance by an actor in a supporting role in a series, mini-series or motion picture made for television']
OFFICIAL_AWARDS_1819 = ['best motion picture - drama', 'best motion picture - musical or comedy',
'best performance by an actress in a motion picture - drama',
'best performance by an actor in a motion picture - drama',
'best performance by an actress in a motion picture - musical or comedy',
'best performance by an actor in a motion picture - musical or comedy',
'best performance by an actress in a supporting role in any motion picture',
'best performance by an actor in a supporting role in any motion picture',
'best director - motion picture', 'best screenplay - motion picture',
'best motion picture - animated', 'best motion picture - foreign language',
'best original score - motion picture', 'best original song - motion picture',
'best television series - drama', 'best television series - musical or comedy',
'best television limited series or motion picture made for television',
'best performance by an actress in a limited series or a motion picture made for television',
'best performance by an actor in a limited series or a motion picture made for television',
'best performance by an actress in a television series - drama',
'best performance by an actor in a television series - drama',
'best performance by an actress in a television series - musical or comedy',
'best performance by an actor in a television series - musical or comedy',
'best performance by an actress in a supporting role in a series, limited series or motion picture made for television',
'best performance by an actor in a supporting role in a series, limited series or motion picture made for television',
'cecil b. demille award']
EXTERNAL_SOURCES = {'actors': 'actorLabel', 'films': 'filmLabel', 'directors': 'directorLabel', 'series': 'seriesLabel', 'actresses':'actorLabel'}
HOST_WORDS = "hosting"
NOMINEE_WORDS = "nominee|nomination|nominated|nominees|nominations|nominate|introduce|introduced|introducing" #|vote|voting|voter|voted|candidate|hope"
PRESENTER_WORDS = "presents|presenting|presented|presentation|presenter|presenters|presentations|announce|announces|announced"
BEST_DRESS = "beautiful|pretty|awesome|wonderful|stunning|nice|elegant|alluring|dazzling|fascinating|favorite"
WORST_DRESS = "worst|ugly|awful|grisly|grotesque|unattractive|disgusting|distasteful|horrid"
DRESS = "dress|wardrobe|costume|attire|robe"
MOMENTS = "moment"
MOMENT_TYPES = ["fun|laugh|hilarious|surprise", "win|winner|victory", "awkward|horror|pain|delicate", "sad|bitter|heartbroken|unhappy"]
STOPWORDS = ["an", "in", "a", "for", "by", "-", "or"]
# Variable Resources
data = {}
years = [2013, 2015, 2018, 2019]
wikidata = WikidataConnector()