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]:
'the_iron_lady_2011'
In [3]:
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information*
Title, Release Year: The Iron Lady (2011)
File Runtime: 01:44:57
Film Runtime (No Credits): 1:37:10

*Technical Details*
Aspect Ratio: 2.35
Avg. Shot Duration: 13.87
Avg. Brightness: 51
Avg. Contrast: 36

*Dialogue Cadence*
Sentences Per Minute: 14
Words Per Sentence 6.63
Questions Per Minute: 1.32
Pct. Questions: 10%

*Emotion*
Pct. Upset Faces: 74%
Laughs Per Minute: 0.42
Profanity Per Minute: 0.03
Words Per Profanity: 2927
Exclamations Per Minute: 1.53
In [4]:
print(len(film_obj.scene_objects))
film_obj.display_scenes()
4
No description has been provided for this image
*Plot Context*
Named Participants: Counter({'dear': 1})
Descriptors: ['indoors', 'sitting']
No description has been provided for this image
*Plot Context*
Named Participants: Counter({'denis': 2, 'carol': 1, 'fuss': 1, 'margaret': 1})
Descriptors: ['indoors']
Held Items: Counter({'necklace': 2})
No description has been provided for this image
*Plot Context*
Context Themes: Counter({'intimacy': 2})
Named Participants: Counter({'ma': 1, 'dear': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'hand': 1, 'eye': 1})
Active Actions: Counter({'touching': 6, 'lit': 2, 'combing': 1, 'kissing': 1, 'sharing': 1, 'hugging': 1, 'laughing': 1})
No description has been provided for this image
*Plot Context*
Context Themes: Counter({'intimacy': 37})
Named Participants: Counter({'denis': 3, 'margaret': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'hands': 7, 'hand': 1, 'book with the title king': 1})
Active Actions: Counter({'hugging': 25, 'embracing': 23, 'dancing': 23, 'kissing': 12, 'putting': 6, 'making': 3, 'touching': 2, 'dance': 2, 'shaking': 1, 'reaching': 1})
Left Wearing: Counter({'hat and a necklace': 3, 'hat and a black jacket': 1, 'hat and a suit': 1})
Right Wearing: Counter({'suit': 3, 'glasses and a suit': 2, 'glasses': 1})
Out[4]:
[None, None, None, None]
In [5]:
film_obj.chart_all_dialogue_emotional_indicators()
No description has been provided for this image
In [6]:
film_obj.chart_all_dialogue_shape()
No description has been provided for this image
In [7]:
film_obj.chart_all_dialogue_question_proportion()
No description has been provided for this image
In [8]:
film_obj.display_color_shots()
No description has been provided for this image
In [9]:
rand_scene = None
if film_obj.dialogue_objects:
    rand_scene = choice(film_obj.dialogue_objects)
    rand_scene.display_qna_frames()
No description has been provided for this image
In [10]:
if rand_scene:
    rand_scene.display_first_p_sentence_frames()
No description has been provided for this image
In [11]:
if rand_scene:
    rand_scene.display_second_p_address_frames()
No description has been provided for this image
In [12]:
film_obj.display_laughs()
No description has been provided for this image
No description has been provided for this image
No description has been provided for this image
No description has been provided for this image
No description has been provided for this image
Out[12]:
[]
In [13]:
film_obj.display_unintelligible_language()
In [14]:
film_obj.display_self_intros()
In [15]:
film_obj.display_other_intros()