Spaces:
Sleeping
Sleeping
Commit
·
56841ad
1
Parent(s):
9529a0d
Add system
Browse files- system/ee.py +2 -2
system/ee.py
CHANGED
@@ -60,8 +60,8 @@ def run_gpt4_event_extraction(data_dir, max_tokens=100000):
|
|
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}\n\n"
|
64 |
-
f"Please only summarize events that are useful for verifying the
|
65 |
)
|
66 |
|
67 |
urls.append(doc["url"])
|
|
|
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"])
|