import sys
sys.path.append('../../')
from moviegoer.tables import film_id_from_film_directory, load_film_object
from random import choice
film_id = film_id_from_film_directory()
film_id
'x2_2003'
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
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})
[None, None, None, None, None]
film_obj.chart_all_dialogue_emotional_indicators()
film_obj.chart_all_dialogue_shape()
film_obj.chart_all_dialogue_question_proportion()
film_obj.display_color_shots()
rand_scene = None
if film_obj.dialogue_objects:
rand_scene = choice(film_obj.dialogue_objects)
rand_scene.display_qna_frames()
if rand_scene:
rand_scene.display_first_p_sentence_frames()
if rand_scene:
rand_scene.display_second_p_address_frames()
film_obj.display_laughs()
[]
film_obj.display_unintelligible_language()
film_obj.display_self_intros()
film_obj.display_other_intros()
Uh, this is Professor Logan.