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]:
'eight_below_2006'
In [3]:
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information* Title, Release Year: Eight Below (2006) File Runtime: 02:00:23 Film Runtime (No Credits): 1:51:47 *Technical Details* Aspect Ratio: 2.39 Avg. Shot Duration: 9.40 Avg. Brightness: 85 Avg. Contrast: 38 *Dialogue Cadence* Sentences Per Minute: 13 Words Per Sentence 4.59 Questions Per Minute: 1.48 Pct. Questions: 12% *Emotion* Pct. Upset Faces: 63% Laughs Per Minute: 0.11 Profanity Per Minute: 0.00 Words Per Profanity: 0 Exclamations Per Minute: 1.51
In [4]:
print(len(film_obj.scene_objects))
film_obj.display_scenes()
3
*Plot Context*
Descriptors: ['indoors']
Held Items: Counter({'cell phone': 3, 'his head': 1, 'head': 1})
Active Actions: Counter({'covers': 2})
Left Wearing: Counter({'jacket and a hat': 13, 'puffy jacket': 10, 'blue and white jacket': 6, 'jacket': 4, 'white and blue jacket': 4, 'jacket and hat': 3, 'jacket and a beanie eating a hot dog': 1})
*Plot Context*
Context Themes: Counter({'dining': 193, 'violence': 52, 'medical': 14, 'drinking': 1})
Potential Common Locations: Counter({'kitchen': 170, 'hospital': 14})
Potential Other Locations: Counter({'hallway': 91})
Establishing Shot Locations: Counter({'airplane': 31, 'building': 12, 'plane': 1})
Named Participants: Counter({'man': 5, 'jerry': 3, 'son': 2, 'captain': 1, 'katie': 1, 'nsf': 1, 'woman': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'knife': 23, 'cell phone': 4, 'hands': 3, 'hand': 2, 'control': 2, 'object': 1, 'tennis racquet': 1, 'box': 1, 'piece of paper': 1, 'bottle of alcohol': 1, 'bottle of liquid': 1})
Active Actions: Counter({'sleeping': 21, 'lit': 17, 'making': 4, 'painted': 3, 'brushing': 2, 'cutting': 2, 'working': 2, 'pointing': 2, 'wiping': 1, 'crossed': 1, 'preparing': 1, 'carrying': 1, 'shaking': 1})
Left Wearing: Counter({'green shirt': 3})
*Plot Context*
Context Themes: Counter({'aquatic': 148, 'animal': 1})
Potential Common Locations: Counter({'beach': 147})
Named Participants: Counter({'brandy': 1})
Descriptors: ['outdoors', 'walking']
Held Items: Counter({'hands': 9})
Active Actions: Counter({'running': 4, 'pick': 2, 'playing': 2, 'bending': 1, 'splashing': 1, 'swimming': 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()
In [14]:
film_obj.display_self_intros()
I'm Dr. Davis McClaren.
In [15]:
film_obj.display_other_intros()
This is Katie.
This is Truman.