The following command will install The Big Bang Theory TVD plugin (and TVD if it is missing)
pip install TVDTheBigBangTheory
The following command will download all resources for The Big Bang Theory into /tmp/tvd_corpus
directory.
python -m tvd.create www /tmp/tvd_corpus/ TheBigBangTheory
Initialize The Big Bang Theory TVD plugin
from tvd import TheBigBangTheory
tbbt = TheBigBangTheory('/tmp/tvd_corpus')
IN CASE YOU USE 'speaker' RESOURCES, PLEASE CONSIDER CITING: @inproceedings{Tapaswi2012 title = {{``Knock! Knock! Who is it?'' Probabilistic Person Identification in TV Series}}, author = {Makarand Tapaswi and Martin B\"{a}uml and Rainer Stiefelhagen}, booktitle = {IEEE Conference on Computer Vision and Pattern Recognition (CVPR)}, year = {2012}, month = {June}, } IN CASE YOU USE 'outline' RESOURCES, PLEASE CONSIDER CITING: @misc{the-big-bang-theory.com, title = {{The Big Bang Theory Wiki}}, howpublished = \url{http://wiki.the-big-bang-theory.com/} } IN CASE YOU USE 'manual_transcript' RESOURCES, PLEASE CONSIDER CITING: @misc{bigbangtrans, title = {{big bang theory transcripts}}, howpublished = \url{http://bigbangtrans.wordpress.com/} }
Get first episode
episode = tbbt.episodes[0]
episode
Episode(series='TheBigBangTheory', season=1, episode=1)
Source: http://wiki.the-big-bang-theory.com/
Provides:
Does not provide timestamps.
I. Hallway outside High-IQ Sperm Bank
Sheldon tells his "good idea for a T-shirt".
II. High-IQ Sperm Bank
Sheldon and Leonard consider donating sperm, but back out.
III. Stairs
Sheldon and Leonard head back to the apartment, discussing the height of stair steps.
...
from tvd import AnnotationGraph
outline = AnnotationGraph.load(tbbt.path_to_resource(episode, 'outline'))
outline
Source: http://bigbangtrans.wordpress.com/
Provides:
Does not provide timestamps.
Scene: A corridor at a sperm bank.
Sheldon: So if a photon is directed through a plane with two slits in it and either slit is observed it will not go through both slits. If it’s unobserved it will, however, if it’s observed after it’s left the plane but before it hits its target, it will not have gone through both slits.
Leonard: Agreed, what’s your point?
Sheldon: There’s no point, I just think it’s a good idea for a tee-shirt.
Leonard: Excuse me?
Receptionist: Hang on.
...
manual_transcript = AnnotationGraph.load(tbbt.path_to_resource(episode, 'manual_transcript'))
manual_transcript
Source: Makarand Tapaswi
Provides:
speaker = AnnotationGraph.load(tbbt.path_to_resource(episode, 'speaker'))
# show only a subgraph (between t=30s and t=60s)
from tvd import TAnchored
speaker.crop(TAnchored(30), TAnchored(60))
Source: LIMSI
Provides: