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]:
'bad_ass_2012'
In [3]:
film_obj = load_film_object(film_id)
film_obj.print_info()
*Film Information*
Title, Release Year: Bad Ass (2012)
File Runtime: 01:30:10
Film Runtime (No Credits): 1:23:09

*Technical Details*
Aspect Ratio: 1.86
Avg. Shot Duration: 9.32
Avg. Brightness: 58
Avg. Contrast: 45

*Dialogue Cadence*
Sentences Per Minute: 15
Words Per Sentence 5.84
Questions Per Minute: 2.36
Pct. Questions: 16%

*Emotion*
Pct. Upset Faces: 59%
Laughs Per Minute: 0.52
Profanity Per Minute: 2.20
Words Per Profanity: 39
Exclamations Per Minute: 1.66
In [4]:
print(len(film_obj.scene_objects))
film_obj.display_scenes()
5
*Plot Context*
Context Themes: Counter({'drinking': 58})
Named Participants: Counter({'biscuit': 2})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'beer': 102, 'bottle of beer': 52, 'bottle': 14})
Active Actions: Counter({'drinking': 6})
*Plot Context*
Potential Other Locations: Counter({'street': 3})
Descriptors: ['indoors', 'standing']
Right Wearing: Counter({'hat': 1})
*Plot Context*
Context Themes: Counter({'animal': 2, 'dining': 1})
Named Participants: Counter({'frank': 1})
Descriptors: ['indoors']
Held Items: Counter({'piece of food': 22, 'something': 5, 'dog': 2, 'doughnut': 1, 'shoe': 1, 'hand': 1})
Active Actions: Counter({'laughing': 2, 'eating': 1})
Right Wearing: Counter({'baseball cap': 21, 'hat': 2, 'hat talking': 1})
*Plot Context*
Descriptors: ['indoors', 'standing']
Left Wearing: Counter({'hat and jacket': 5, 'hat': 1})
Right Wearing: Counter({'brown shirt': 34})
*Plot Context*
Context Themes: Counter({'drinking': 8})
Descriptors: ['indoors', 'sitting']
Held Items: Counter({'glass of wine': 8})
Active Actions: Counter({'blowing': 1})
Left Wearing: Counter({'jacket': 1})
Out[4]:
[None, None, 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()
SPEAKING SPANISH
In [14]:
film_obj.display_self_intros()
In [15]:
film_obj.display_other_intros()
Yeah, this is Frank Vega.