Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/X-LANCE/BER
/ functions
Functions
16 in github.com/X-LANCE/BER
⨍
Functions
16
◇
Types & classes
0
↓ 2 callers
Function
build_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 callers
Function
get_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 callers
Function
harmonic_mean
(value1,value2, eps = 1e-6 )
score.py:326
↓ 2 callers
Function
merge_duplicated_segment
merge overlapped segments Args: segments: [(start, end), ...] Returns: segments: [(start, end), ...]
score.py:37
↓ 1 callers
Function
build_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 callers
Function
build_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 callers
Function
build_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 callers
Function
compute_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 callers
Function
get_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 callers
Function
get_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 callers
Function
get_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 callers
Function
iou_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 callers
Function
main
()
score.py:594
↓ 1 callers
Function
read_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 callers
Function
test_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
Function
get_statistics_for_each_file
(rttm_dict_item)
score.py:330