Please provide a clear and concise description of what the question is.
老师您好,
想问在cosent_dataset.py的load_cosent_train_data()函数中,
if path.endswith('.jsonl'):
data_list = load_jsonl(path)
for entry in data_list:
field1, field2 = get_field_names(entry)
if not field1 or not field2:
continue
text_a, text_b, score = entry[field1], entry[field2], float(entry["label"])
data.append((text_a, score))
data.append((text_b, score))
Describe the Question
Please provide a clear and concise description of what the question is.
老师您好,
想问在cosent_dataset.py的load_cosent_train_data()函数中,
为什么将三元组
拆分成了
这样的两对数据。那在计算训练损失的时候如何进行cos计算呢?
谢谢!