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
'like_crazy_2011'
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information* Title, Release Year: Like Crazy (2011) File Runtime: 01:30:01 Film Runtime (No Credits): 1:25:21 *Technical Details* Aspect Ratio: 1.78 Avg. Shot Duration: 14.11 Avg. Brightness: 60 Avg. Contrast: 42 *Dialogue Cadence* Sentences Per Minute: 16 Words Per Sentence 4.75 Questions Per Minute: 2.21 Pct. Questions: 14% *Emotion* Pct. Upset Faces: 63% Laughs Per Minute: 0.50 Profanity Per Minute: 0.05 Words Per Profanity: 1631 Exclamations Per Minute: 1.00
print(len(film_obj.scene_objects))
film_obj.display_scenes()
12
*Plot Context*
Named Participants: Counter({'man': 4, 'anna': 1})
Descriptors: ['sitting']
Held Items: Counter({'cell phone': 19, 'pen': 4})
Left Wearing: Counter({'shirt': 7})
*Plot Context*
Descriptors: ['indoors']
Held Items: Counter({'cell phone': 3})
Left Wearing: Counter({'yellow shirt': 3, 'shirt': 2})
Right Wearing: Counter({'blue shirt': 41, 'purple shirt': 2})
*Plot Context*
Context Themes: Counter({'dining': 36})
Potential Common Locations: Counter({'restaurant': 36})
Named Participants: Counter({'man': 3, 'anna': 2, 'woman': 2})
Descriptors: ['indoors', 'sitting']
Active Actions: Counter({'laughing': 1})
*Plot Context*
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'cell phone': 3})
Active Actions: Counter({'lit': 6})
*Plot Context*
Context Themes: Counter({'violence': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'cell phone': 1, 'blue eyes and a book': 1, 'book': 1, 'gun': 1})
Active Actions: Counter({'getting': 1})
*Plot Context*
Context Themes: Counter({'transit': 18, 'driving': 18, 'drinking': 18})
Potential Common Locations: Counter({'car': 18, 'bar': 18})
Potential Other Locations: Counter({'street': 15, 'sidewalk': 5, 'hallway': 1})
Named Participants: Counter({'jacob': 4, 'man': 1, 'woman': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'cell phone': 22, 'glass': 1})
Active Actions: Counter({'sleeping': 30, 'using': 12, 'texting': 2})
*Plot Context*
Context Themes: Counter({'drinking': 51, 'intimacy': 6})
Potential Common Locations: Counter({'bar': 49})
Named Participants: Counter({'man': 4, 'woman': 4, 'woman 1': 3, 'anna': 3, 'hi': 1, 'jacob': 1, 'woman 2': 1})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'cell phone': 14, 'drink': 1})
Active Actions: Counter({'hugging': 6, 'shaking': 4, 'drinking': 2, 'shines': 1})
Left Wearing: Counter({'hat': 1})
*Plot Context*
Context Themes: Counter({'dining': 92, 'drinking': 11})
Potential Common Locations: Counter({'kitchen': 92, 'bar': 8})
Named Participants: Counter({'bernard': 4})
Descriptors: ['indoors', 'standing']
Active Actions: Counter({'preparing': 40, 'drinking': 3})
*Plot Context*
Potential Other Locations: Counter({'field': 5})
Establishing Shot Locations: Counter({'train': 16})
Descriptors: ['outdoors', 'sitting']
*Plot Context*
Context Themes: Counter({'transit': 75})
Potential Common Locations: Counter({'train': 58, 'bus': 17})
Establishing Shot Locations: Counter({'train': 60, 'bus': 15})
Descriptors: ['indoors', 'sitting']
Left Wearing: Counter({'blue shirt': 7})
Right Wearing: Counter({'leather jacket': 48})
*Plot Context*
Context Themes: Counter({'violence': 1, 'dining': 1})
Establishing Shot Locations: Counter({'building': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'coffee cup': 13, 'hands together': 5, 'cup of coffee': 2, 'knife': 1, 'ring': 1, 'hand': 1})
*Plot Context*
Context Themes: Counter({'drinking': 28, 'dining': 9})
Named Participants: Counter({'bernard': 8, 'anna': 4, 'darling': 1})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'cell phone': 47, 'cup of coffee': 20, 'hand': 15, 'coffee cup': 6, 'cup': 2, 'hands': 1, 'coffee cups': 1})
Active Actions: Counter({'drinking': 28, 'praying': 15, 'eating': 9, 'covers': 9, 'covering': 2, 'clasped': 1, 'playing': 1})
Right Wearing: Counter({'white shirt': 96, 'shirt and a tie': 59})
[None, None, None, None, None, None, None, 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()
Hi, I'm Jacob.
film_obj.display_other_intros()
This is Samantha.
This is Samantha.