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]:
'black_sheep_2006'
In [3]:
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
In [4]:
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})
Out[4]:
[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 Henry, this is Tucker.
In [15]:
film_obj.display_other_intros()