feat: 对话补全训练数据生成
This commit is contained in:
parent
89f10d841d
commit
c2d49e885e
@ -8,7 +8,8 @@
|
|||||||
|
|
||||||
import json
|
import json
|
||||||
import pandas as pd
|
import pandas as pd
|
||||||
|
import torch
|
||||||
|
import torch.nn.functional as F
|
||||||
|
|
||||||
def load_excel_column(file_path, column_index=2):
|
def load_excel_column(file_path, column_index=2):
|
||||||
"""读取 Excel 文件的第三列,并将每一行解析为 dict"""
|
"""读取 Excel 文件的第三列,并将每一行解析为 dict"""
|
||||||
|
Loading…
Reference in New Issue
Block a user