Skip to content

Commit

Permalink
feature@修改引用格式
Browse files Browse the repository at this point in the history
  • Loading branch information
yanqiangmiffy committed Sep 20, 2024
1 parent 6a7edfc commit d0f3723
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions gomate/modules/citation/match_citation.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,14 @@ def ground_response(
highlighted_start_end = self.highlight_common_substrings(sentence, evidence_sentence,evidence)
quote_list.append(
{
"doc_id": 90564, # 文件id
"doc_id": selected_docs[i]["newsinfo"]["id"], # 文件id
"chk_id": best_idx, # 切片索引(从0开始)
# 非文内溯源知识集合无需返回
"doc_source": "新闻来源",
"doc_source": selected_docs[i]["newsinfo"]["id"],
# 新闻时间, 非文内溯源知识集合无需返回
"doc_date": "2021-10-19",
"doc_date": selected_docs[i]["newsinfo"]["date"],
# 非文内溯源知识集合无需返回
"doc_title": "新闻标题",
"doc_title": selected_docs[i]["newsinfo"]["title"],
# 非文内溯源知识集合无需返回
"chk_content": evidence,
"best_ratio": best_ratio,
Expand Down

0 comments on commit d0f3723

Please sign in to comment.