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]:
'x2_2003'
In [3]:
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information*
Title, Release Year: X2 (2003)
File Runtime: 02:13:46
Film Runtime (No Credits): 2:02:46

*Technical Details*
Aspect Ratio: 2.39
Avg. Shot Duration: 7.27
Avg. Brightness: 44
Avg. Contrast: 37

*Dialogue Cadence*
Sentences Per Minute: 11
Words Per Sentence 4.80
Questions Per Minute: 1.60
Pct. Questions: 15%

*Emotion*
Pct. Upset Faces: 66%
Profanity Per Minute: 0.07
Words Per Profanity: 812
Exclamations Per Minute: 0.76
In [4]:
print(len(film_obj.scene_objects))
film_obj.display_scenes()
5
*Plot Context*
Context Themes: Counter({'intimacy': 2})
Named Participants: Counter({'logan': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'hand': 2, 'key': 1})
Active Actions: Counter({'kissing': 2})
Left Wearing: Counter({'yellow shirt': 16, 'white shirt': 1})
Right Wearing: Counter({'leather jacket': 27})
*Plot Context*
Context Themes: Counter({'drinking': 16, 'dining': 2, 'violence': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'bottle of beer': 16, 'cell phone': 14, 'bottle': 7, 'hand': 3, 'glass': 3, 'piece of food': 1, 'knife': 1})
Active Actions: Counter({'eating': 1})
Left Wearing: Counter({'tank top': 17})
*Plot Context*
Context Themes: Counter({'transit': 68, 'driving': 55})
Potential Common Locations: Counter({'car': 55})
Potential Other Locations: Counter({'hallway': 29, 'road': 13, 'tunnel': 5, 'street': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'cell phone': 20, 'dog tag': 6, 'needle': 1, 'pair of scissors': 1, 'tag': 1, 'room': 1})
Active Actions: Counter({'driving': 13, 'lit': 2, 'touching': 2, 'traveling': 1, 'turned': 1, 'pressing': 1})
Right Wearing: Counter({'glove holding a wrench': 1, 'tank top': 1})
*Plot Context*
Context Themes: Counter({'nature': 3})
Potential Other Locations: Counter({'forest': 3})
Establishing Shot Locations: Counter({'building': 1})
Descriptors: ['indoors', 'standing']
Active Actions: Counter({'covered': 2, 'painted': 1})
Right Wearing: Counter({'black shirt': 1})
*Plot Context*
Context Themes: Counter({'intimacy': 32})
Named Participants: Counter({'logan': 2})
Descriptors: ['indoors']
Active Actions: Counter({'kissing': 32})
Out[4]:
[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()
In [15]:
film_obj.display_other_intros()
Uh, this is Professor Logan.