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]:
'what_just_happened_2008'
In [3]:
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information*
Title, Release Year: What Just Happened (2008)
File Runtime: 01:43:58
Film Runtime (No Credits): 1:36:52

*Technical Details*
Aspect Ratio: 2.41
Avg. Shot Duration: 10.76
Avg. Brightness: 40
Avg. Contrast: 34

*Dialogue Cadence*
Sentences Per Minute: 21
Words Per Sentence 4.97
Questions Per Minute: 3.10
Pct. Questions: 15%

*Emotion*
Pct. Upset Faces: 59%
Laughs Per Minute: 0.10
Profanity Per Minute: 0.87
Words Per Profanity: 121
Exclamations Per Minute: 0.24
In [4]:
print(len(film_obj.scene_objects))
film_obj.display_scenes()
9
*Plot Context*
Potential Common Locations: Counter({'bathroom': 2})
Establishing Shot Locations: Counter({'building': 3})
Descriptors: ['indoors', 'standing']
*Plot Context*
Named Participants: Counter({'bruce': 2})
Descriptors: ['standing']
*Plot Context*
Context Themes: Counter({'drinking': 14, 'dining': 2, 'violence': 1})
Potential Other Locations: Counter({'hallway': 1})
Named Participants: Counter({'ben': 3, 'jeremy': 3, 'cal': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'cell phone': 21, 'phone': 1, 'banana': 1, 'knife': 1, 'mouth': 1, 'piece of paper': 1})
Active Actions: Counter({'drinking': 14, 'enter': 8, 'open': 6, 'typing': 6, 'working': 5, 'watching': 4, 'covering': 2, 'using': 1, 'giving': 1, 'cutting': 1, 'turned': 1, 'outstretched': 1, 'smoking': 1, 'eating': 1})
Left Wearing: Counter({'suit': 24, 'black jacket': 1})
*Plot Context*
Named Participants: Counter({'ben': 2, 'laura': 1})
Descriptors: ['indoors', 'standing']
Active Actions: Counter({'laughing': 1})
*Plot Context*
Establishing Shot Locations: Counter({'building': 17})
Named Participants: Counter({'ben': 1})
Descriptors: ['indoors', 'sitting']
*Plot Context*
Named Participants: Counter({'ben': 5, 'carl': 5})
Descriptors: ['indoors', 'sitting']
*Plot Context*
Context Themes: Counter({'medical': 89, 'dining': 13, 'intimacy': 3})
Potential Common Locations: Counter({'hospital': 89, 'store': 16, 'restaurant': 13, 'bathroom': 1})
Establishing Shot Locations: Counter({'building': 23})
Named Participants: Counter({'honey': 1, 'man': 1, 'zoe': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'cell phone': 4, 'hand': 1, 'arm out': 1})
Active Actions: Counter({'getting': 23, 'reclining': 6, 'putting': 5, 'touching': 4, 'waxed': 4, 'kissing': 3, 'reading': 2, 'cut': 2, 'crossed': 2, 'shaking': 2, 'open': 1, 'pick': 1, 'done': 1, 'dancing': 1, 'cutting': 1})
Left Wearing: Counter({'suit': 20})
*Plot Context*
Named Participants: Counter({'cal': 2, 'ben': 1})
*Plot Context*
Named Participants: Counter({'make a note': 1})
Descriptors: ['standing']
Out[4]:
[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()
SPEAKING FOREIGN LANGUAGE
ALL SPEAKING IN FOREIGN LANGUAGE
MEN SPEAKING In FOREIGN LANGUAGE
GIRLS SPEAKING IN FOREIGN LANGUAGE
MAN SPEAKING SPANISH
In [14]:
film_obj.display_self_intros()
In [15]:
film_obj.display_other_intros()
This is Bruce Willis we're talking about.