In [1]:
%pylab inline
# only display first 30 seconds
from pyannote.core.notebook import set_notebook_crop
from pyannote.core import Segment
set_notebook_crop(Segment(0, 30))
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/
directory.
python -m tvd.create metadata /tmp/ TheBigBangTheory
Initialize TheBigBangTheory TVD plugin
In [2]:
from tvd import TheBigBangTheory
theBigBangTheory = TheBigBangTheory('/tmp')
Get first episode
In [3]:
episode = theBigBangTheory.episodes[0]
episode
Out[3]:
Source: http://wiki.the-big-bang-theory.com
Provides
In [9]:
outline = theBigBangTheory.get_resource('outline', episode)
outline
Out[9]:
Source: http://foreverdreaming.org/
Provides:
Does not provide timestamps.
In [6]:
transcript = theBigBangTheory.get_resource('transcript', episode)
transcript
Out[6]:
Source: LIMSI
Provides:
In [7]:
transcript_aligned = theBigBangTheory.get_resource('transcript_aligned', episode)
transcript_aligned.crop(0, 30)
Out[7]:
Source: Makarand Tapaswi
Provides:
In [10]:
speaker = theBigBangTheory.get_resource('speaker', episode)
speaker
Out[10]: