<reponame>CodyChew/punctuation-restoration
import os
import numpy as np

############### use to get all test filenames from test_HL.ctm #######################
# save_path = 'Switchboard_data_split_for_sentence_unit_detection/test_HL.ctm'	
# data_file = open(save_path, "r", encoding="utf-8")
# lines = data_file.readlines()
# iterable = map(lambda x: x.split(" ")[0], lines)
# test_files = []
# for i in iterable:
# 	if i not in test_files:
# 		test_files.append(i)
# print(len(test_files))
######################################################################################

import os
import numpy as np

############### use to get all test filenames from test_HL.ctm #######################
# save_path = 'Switchboard_data_split_for_sentence_unit_detection/test_HL.ctm'	
# data_file = open(save_path, "r", encoding="utf-8")
# lines = data_file.readlines()
# iterable = map(lambda x: x.split(" ")[0], lines)
# test_files = []
# for i in iterable:
# 	if i not in test_files:
# 		test_files.append(i)
# print(len(test_files))
######################################################################################
############### use to get all test filenames from test_HL.ctm ####################### # save_path = 'Switchboard_data_split_for_sentence_unit_detection/test_HL.ctm' # data_file = open(save_path, "r", encoding="utf-8") # lines = data_file.readlines() # iterable = map(lambda x: x.split(" ")[0], lines) # test_files = [] # for i in iterable: # 	if i not in test_files: # 		test_files.append(i) # print(len(test_files)) ######################################################################################