MCPcopy Create free account

hub / github.com/X-LANCE/BER / functions

Functions16 in github.com/X-LANCE/BER

↓ 2 callersFunctionbuild_speaker_index
Build the index for the speaker names. Args: hyp: a list of tuples, where each tuple is (speaker, start, end) of type (string,
score.py:109
↓ 2 callersFunctionget_rttm_dict
build meta information from single rttm file path. Args: rttm_file: rttm file path Returns: rttm_dict: {'filename': {'spkname'
score.py:16
↓ 2 callersFunctionharmonic_mean
(value1,value2, eps = 1e-6 )
score.py:326
↓ 2 callersFunctionmerge_duplicated_segment
merge overlapped segments Args: segments: [(start, end), ...] Returns: segments: [(start, end), ...]
score.py:37
↓ 1 callersFunctionbuild_connection_matrix
Build the connection matrix. Args: ref: a list of tuples for the ground truth, where each tuple is (speaker, start, end) of ty
score.py:169
↓ 1 callersFunctionbuild_cost_matrix
Build the cost matrix. Args: ref: a list of tuples for the ground truth, where each tuple is (speaker, start, end) of type (st
score.py:147
↓ 1 callersFunctionbuild_speaker_list
Build the index for the speakers. Args: ref: a list of tuples for the ground truth, where each tuple is (speaker, start, end)
score.py:122
↓ 1 callersFunctioncompute_intersection_length
Compute the intersection length of two tuples. Args: A: a (speaker, start, end) tuple of type (string, float, float) B: a (speaker
score.py:96
↓ 1 callersFunctionget_all_connected_graphs
Get all connected sub-graph in connection_matrix Args: connection_matrix: a 2-dim numpy array, whose element (i, j) = 1 means there exists
score.py:214
↓ 1 callersFunctionget_dynamic_iou
Get dynamic iou for segments with varying length because the fixed IoU (like 0.5) is too loose for long utterance Args: single_ref_segs: a
score.py:267
↓ 1 callersFunctionget_fa_ms
Calculate false alarm and missed speech duration Args: ref_segments: a sorted list with item (start, end) of type (float, float) h
score.py:285
↓ 1 callersFunctioniou_of_pair_segments
Calculate the IoU of between segments_a listsand segments_b list Args: segments_a: a list with item (start, end) of type (float, float)
score.py:236
↓ 1 callersFunctionmain
()
score.py:594
↓ 1 callersFunctionread_rttm_files
build meta information from ref and hyp rttm file path. Args: ref_rttm_file, hyp_rttm_file: rttm file path Returns: rttm_dict:
score.py:63
↓ 1 callersFunctiontest_connectivity_by_dfs
Get all nodes in a connected sub-graph via depth-first traversal Args: connection_matrix: a 2-dim numpy array, whose element (i, j) = 1 me
score.py:192
Functionget_statistics_for_each_file
(rttm_dict_item)
score.py:330