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
'black_sheep_2006'
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information* Title, Release Year: Black Sheep (2006) File Runtime: 01:26:25 Film Runtime (No Credits): 1:22:11 *Technical Details* Aspect Ratio: 2.35 Avg. Shot Duration: 9.10 Avg. Brightness: 48 Avg. Contrast: 41 *Dialogue Cadence* Sentences Per Minute: 11 Words Per Sentence 4.61 Questions Per Minute: 1.63 Pct. Questions: 15% *Emotion* Pct. Upset Faces: 67% Profanity Per Minute: 0.26 Words Per Profanity: 201 Exclamations Per Minute: 1.81
print(len(film_obj.scene_objects))
film_obj.display_scenes()
2
*Plot Context*
Context Themes: Counter({'dining': 24})
Potential Common Locations: Counter({'kitchen': 24})
Descriptors: ['indoors', 'standing']
Right Wearing: Counter({'brown shirt': 22})
*Plot Context*
Context Themes: Counter({'violence': 62, 'dining': 5})
Potential Other Locations: Counter({'hill': 20, 'hillside': 19})
Named Participants: Counter({'angus': 3, 'henry': 2})
Descriptors: ['indoors', 'standing']
Held Items: Counter({'gun': 42, 'rifle': 15, 'knife': 5, 'cigarette': 3, 'cell phone': 3, 'cane': 2, 'animal': 2, 'remote': 1, 'guitar': 1, 'violin': 1})
Active Actions: Counter({'lit': 23, 'aiming': 20, 'turned': 3, 'open': 1, 'topped': 1})
Left Wearing: Counter({'yellow shirt': 20, 'white shirt': 8, 'yellow and white shirt': 4, 'green shirt': 1})
[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()
I'm Henry, this is Tucker.
film_obj.display_other_intros()