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]:
'rachel_getting_married_2008'
In [3]:
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information* Title, Release Year: Rachel Getting Married (2008) File Runtime: 01:52:42 Film Runtime (No Credits): 1:45:11 *Technical Details* Aspect Ratio: 1.85 Avg. Shot Duration: 9.64 Avg. Brightness: 49 Avg. Contrast: 34 *Dialogue Cadence* Sentences Per Minute: 18 Words Per Sentence 5.52 Questions Per Minute: 2.23 Pct. Questions: 13% *Emotion* Pct. Upset Faces: 59% Laughs Per Minute: 0.36 Profanity Per Minute: 0.30 Words Per Profanity: 323 Exclamations Per Minute: 1.22
In [4]:
print(len(film_obj.scene_objects))
film_obj.display_scenes()
3
*Plot Context*
Establishing Shot Locations: Counter({'building': 3})
Named Participants: Counter({'walter': 1})
Descriptors: ['indoors', 'sitting']
Active Actions: Counter({'smoking': 16})
*Plot Context*
Context Themes: Counter({'intimacy': 10})
Establishing Shot Locations: Counter({'building': 1})
Descriptors: ['indoors']
Active Actions: Counter({'kissing': 10})
*Plot Context*
Named Participants: Counter({'kym': 2, 'all': 2, 'coal': 1, 'hi': 1, 'man': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'hand': 11, 'cell phone': 8})
Active Actions: Counter({'using': 31, 'putting': 6, 'singing': 1, 'covering': 1})
Out[4]:
[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()
MAN SINGING IN FOREIGN LANGUAGE
In [14]:
film_obj.display_self_intros()
Hi, I'm Kym.
I'm Kieran.
I'm Shiva the destroyer and your harbinger of doom for this evening.
In [15]:
film_obj.display_other_intros()
This is Carol-Jean.
This is Sidney's family.