MCPcopy Create free account
hub / github.com/BIT-DataLab/LakeBench / process_string

Function process_string

union/TUS/yago.py:5–11  ·  view source on GitHub ↗
(input_string)

Source from the content-addressed store, hash-verified

3
4
5def process_string(input_string):
6 # 将字符串中的字母转换为小写
7 input_string = str(input_string)
8 processed_string = input_string.lower()
9 # 使用正则表达式将非字母数字字符替换为空格
10 processed_string = re.sub(r'[^a-zA-Z0-9]', '', processed_string)
11 return processed_string
12
13
14def create_taxonomy_from_tsv(file_path, cursor):

Callers 9

find_word2vec_of_columnFunction · 0.90
match_entity_from_yagoFunction · 0.90
process_subsetFunction · 0.90
yago_entity_lshFunction · 0.90
match_entity_from_yagoFunction · 0.90
create_type_from_tsvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected