yulongchen commited on
Commit
e7c482c
·
1 Parent(s): 56841ad

Add system

Browse files
Files changed (1) hide show
  1. system/ee.py +2 -2
system/ee.py CHANGED
@@ -59,9 +59,9 @@ def run_gpt4_event_extraction(data_dir, max_tokens=100000):
59
 
60
  text = " ".join(doc["text"])
61
  input_text = (
62
- f"{ICL}\nInput:\n\nTitle: {doc['metadata']['title']}\n"
63
  f"Date: {doc['metadata']['date']}\nArticle: {text}\nPledge: {claim}\n\n"
64
- f"Please only summarize events that are useful for verifying the pledge '{claim}', and their dates in the JSON format.\n\nOutput:\n"
65
  )
66
 
67
  urls.append(doc["url"])
 
59
 
60
  text = " ".join(doc["text"])
61
  input_text = (
62
+ f"{ICL}\nPlease only summarize events that are useful for verifying the pledge '{claim}', and their dates in the JSON format.\n\nInput:\n\nTitle: {doc['metadata']['title']}\n"
63
  f"Date: {doc['metadata']['date']}\nArticle: {text}\nPledge: {claim}\n\n"
64
+ f"Output:\n"
65
  )
66
 
67
  urls.append(doc["url"])