- Collection
- Re-encoding
- Usage agreement
- Distribution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyannote import Annotation, Segment | |
# uri (optional) uniform resource identifier | |
uri = 'GameOfThrones.Season01.Episode01' | |
# modality (optional) | |
modality = 'scene' | |
# | |
a = Annotation(uri=uri, modality=modality) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import simplejson as json | |
import itertools | |
LABELS = ['howard', 'leonard', 'non_speech', | |
'other', 'penny', 'raj', 'sheldon'] | |
def loss(gold, pred, durations=None): | |
# convert '0' to 'howard', '1' to 'leonard', etc... | |
gold = [LABELS[int(k)] for k in gold] | |
pred = [LABELS[int(k)] for k in pred] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cells": [ | |
{ | |
"cell_type": "code", | |
"execution_count": 1, | |
"metadata": { | |
"collapsed": false | |
}, | |
"outputs": [ | |
{ |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""This module defines functions that do the actual work""" | |
def time_based_propagation(speaker_diarization, pronounced_names, neighborhood=20.0): | |
"""Perform time-based propagation and return 'who speaks when' hypothesis as pyannote.core.Annotation""" | |
hypothesis = Annotation() | |
# do something with speaker_diarization, pronounced_names and neighborhood | |
return hypothesis | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=/people/bredin/cluster/bin:$PATH | |
export LD_LIBRARY_PATH=/people/bredin/cluster/lib:/people/bredin/cluster/lib64:$LD_LIBRARY_PATH | |
# GCC suivant la procédure d'Eric | |
# OpenSSL | |
wget https://www.openssl.org/source/openssl-1.0.2g.tar.gz | |
tar xzvf openssl-1.0.2g.tar.gz | |
cd openssl-1.0.2g | |
CFLAGS=-fPIC ./config shared --openssldir=/people/bredin/cluster |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
OlderNewer