Location>code7788 >text

Hallucination_evaluation_model

Popularity:886 ℃/2025-03-12 15:51:26
def huan_jue(): df = pd.read_csv('leaderboard_summaries.csv', encoding='utf-8') df = df[df['model'] == 'deepseek/deepseek-v3'] data = {"source": [], 'ori_summary': [], "rendu_summary": []} for index, row in (): source = row[0] ori_summary = row[1] msg = f'Provide a concise summary of the following passage, covering the core pieces of information described in english. {source}' con = rendu(msg) try: con = con['choices'][0]['message']['content'] except IndexError: con = '' print(index, con[:100]) data["source"].append(source) data["ori_summary"].append(ori_summary) data["rendu_summary"].append(con) df2 = (data) df2.to_csv('', index=False)