InĀ [1]:
import sys
sys.path.append('../../')
from moviegoer.tables import film_id_from_film_directory, load_film_object
from random import choice
InĀ [2]:
film_id = film_id_from_film_directory()
film_id
Out[2]:
'fright_night_2011'
InĀ [3]:
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information* Title, Release Year: Fright Night (2011) File Runtime: 01:45:56 Film Runtime (No Credits): 1:39:31 *Technical Details* Aspect Ratio: 1.78 Avg. Shot Duration: 10.85 Avg. Brightness: 26 Avg. Contrast: 26 *Dialogue Cadence* Sentences Per Minute: 15 Words Per Sentence 4.21 Questions Per Minute: 2.10 Pct. Questions: 14% *Emotion* Pct. Upset Faces: 59% Laughs Per Minute: 0.15 Profanity Per Minute: 1.02 Words Per Profanity: 62 Exclamations Per Minute: 1.99
InĀ [4]:
print(len(film_obj.scene_objects))
film_obj.display_scenes()
12
*Plot Context*
Potential Other Locations: Counter({'hallway': 14})
Establishing Shot Locations: Counter({'building': 1})
Descriptors: ['indoors', 'standing']
Active Actions: Counter({'making': 5, 'open': 1})
Left Wearing: Counter({'plaid': 8})
*Plot Context*
Context Themes: Counter({'aquatic': 184, 'sport': 184, 'intimacy': 1, 'violence': 1, 'dining': 1})
Potential Other Locations: Counter({'pool': 184})
Establishing Shot Locations: Counter({'building': 2})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'piece of food': 17, 'cigarette': 7, 'something': 5, 'frisbee': 5, 'cell phone': 4, 'tennis racquet': 2, 'hand': 1, 'knife': 1, 'his head': 1})
Active Actions: Counter({'touching': 3, 'smoking': 1, 'hallows': 1, 'hugging': 1})
Left Wearing: Counter({'green shirt': 1})
Right Wearing: Counter({'yellow jacket': 1})
*Plot Context*
Context Themes: Counter({'dining': 158, 'violence': 1})
Potential Common Locations: Counter({'kitchen': 101})
Potential Other Locations: Counter({'doorway': 8})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'toaster': 1, 'knife': 1, 'cell phone': 1})
Active Actions: Counter({'reaching': 3, 'picking': 1})
Left Wearing: Counter({'green shirt': 3})
*Plot Context*
Context Themes: Counter({'dining': 52, 'drinking': 5})
Potential Common Locations: Counter({'kitchen': 52})
Named Participants: Counter({'amy': 1, 'charley': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'cell phone': 19, 'beer bottle': 5, 'beer can': 3, 'can of budweiser beer': 2, 'box of budweiser': 2, 'pack of budweiser beer': 1, 'can of budweiser': 1, 'box of beer': 1, 'bag of budweiser beer': 1})
Active Actions: Counter({'glowing': 9, 'reaching': 2, 'brushing': 2, 'opening': 1})
*Plot Context*
Context Themes: Counter({'intimacy': 1})
Descriptors: ['indoors', 'sitting']
Active Actions: Counter({'lit': 21, 'covering': 1, 'kissing': 1})
*Plot Context*
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'drink': 22, 'cane': 5, 'bottle': 1, 'pole': 1})
Active Actions: Counter({'open': 4})
Right Wearing: Counter({'suit': 2})
*Plot Context*
Context Themes: Counter({'drinking': 94})
Potential Common Locations: Counter({'bar': 94})
Named Participants: Counter({'nevada': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'glass': 27, 'drink': 6, 'martini': 1, 'hand': 1})
Active Actions: Counter({'glowing': 2})
*Plot Context*
Potential Other Locations: Counter({'hallway': 64})
Named Participants: Counter({'charley': 2})
Descriptors: ['indoors', 'standing']
Active Actions: Counter({'touching': 3, 'smile': 1})
*Plot Context*
Context Themes: Counter({'violence': 81, 'dining': 32})
Named Participants: Counter({'amy': 2, 'ed': 2, 'brewster': 1, 'buddy': 1, 'chuck': 1, 'chuckles': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'gun': 42, 'knife': 32, 'cell phone': 26, 'baseball bat': 9, 'hand': 7, 'hair': 6, 'sword': 5, 'tennis racquet': 4, 'neck': 3, 'control': 2, 'toothbrush': 2, 'cigarette': 2, 'metal object': 1, 'guitar': 1, 'nintendo wii game controller': 1, 'ax': 1, 'steering wheel': 1, 'device': 1, 'hands': 1, 'bottle': 1, 'gold object': 1, 'gold': 1, 'something': 1, 'candle': 1, 'glass': 1, 'hair back': 1, 'axe': 1})
Active Actions: Counter({'open': 25, 'lit': 22, 'making': 14, 'playing': 5, 'brushing': 5, 'covering': 5, 'smoking': 4, 'glowing': 4, 'shines': 2, 'cutting': 2, 'crossed': 1, 'turned': 1, 'shining': 1, 'swinging': 1, 'reaching': 1, 'working': 1, 'pouring': 1, 'coming': 1, 'combing': 1})
*Plot Context*
Context Themes: Counter({'intimacy': 15})
Named Participants: Counter({'charley': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'hand': 8, 'neck': 1, 'cell phone': 1, 'woman': 1})
Active Actions: Counter({'kissing': 14, 'putting': 6, 'touching': 5, 'held': 2, 'examined': 1, 'glowing': 1, 'brushing': 1, 'smoking': 1, 'hugging': 1})
*Plot Context*
Context Themes: Counter({'violence': 13, 'drinking': 9, 'dining': 8})
Potential Common Locations: Counter({'bar': 4})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'bottle': 10, 'knife': 8, 'glass': 5, 'gun': 5, 'drink': 3, 'object': 3, 'metal object': 2, 'baseball bat': 1})
Active Actions: Counter({'glowing': 39, 'crossed': 29, 'open': 16, 'pouring': 7, 'drinking': 5})
*Plot Context*
Named Participants: Counter({'chuckles': 1})
Descriptors: ['indoors']
Active Actions: Counter({'lit': 2, 'glowing': 2})
Left Wearing: Counter({'yellow tank top': 25, 'yellow dress': 3, 'yellow shirt': 1, 'yellow top': 1})
Out[4]:
[None, None, None, None, None, None, None, None, None, None, None, None]
InĀ [5]:
film_obj.chart_all_dialogue_emotional_indicators()
InĀ [6]:
film_obj.chart_all_dialogue_shape()
InĀ [7]:
film_obj.chart_all_dialogue_question_proportion()
InĀ [8]:
film_obj.display_color_shots()
InĀ [9]:
rand_scene = None
if film_obj.dialogue_objects:
rand_scene = choice(film_obj.dialogue_objects)
rand_scene.display_qna_frames()
InĀ [10]:
if rand_scene:
rand_scene.display_first_p_sentence_frames()
InĀ [11]:
if rand_scene:
rand_scene.display_second_p_address_frames()
InĀ [12]:
film_obj.display_laughs()
Out[12]:
[]
InĀ [13]:
film_obj.display_unintelligible_language()
InĀ [14]:
film_obj.display_self_intros()
Hi, I'm Amy.
InĀ [15]:
film_obj.display_other_intros()