yulongchen commited on
Commit
d21fef3
·
1 Parent(s): 9426cdd

Add system

Browse files
system/hero_pipeline.py CHANGED
@@ -148,10 +148,3 @@ def run_hero_pipeline(pipeline_base_dir):
148
  }
149
 
150
 
151
- if __name__ == "__main__":
152
- user_id="xxx"
153
- end_date="20250604"
154
- pipeline_base_dir = f"{user_id}_{end_date}"
155
- output_files = run_step3_hero_pipeline(pipeline_base_dir)
156
- for key, path in output_files.items():
157
- print(f"✅ {key}: {path}")
 
148
  }
149
 
150
 
 
 
 
 
 
 
 
system/process_time.py CHANGED
@@ -143,7 +143,7 @@ def parse_date(date_str):
143
  target_date = reference
144
  else:
145
  return None, date_str
146
- return target_date, date_str # ✅ 返回 datetime 对象,不是字符串
147
 
148
  # Case 3: YYYY
149
  match = re.fullmatch(r'(\d{4})', date_str)
 
143
  target_date = reference
144
  else:
145
  return None, date_str
146
+ return target_date, date_str
147
 
148
  # Case 3: YYYY
149
  match = re.fullmatch(r'(\d{4})', date_str)
test.html CHANGED
@@ -23,11 +23,11 @@
23
  <section class="py-16 bg-gradient-to-r from-purple-50 to-purple-50 text-center">
24
  <div class="container mx-auto px-4 max-w-3xl">
25
  <h1 class="text-3xl md:text-4xl font-extrabold mb-6">
26
- Fact-Checking Election Promises
27
  </h1>
28
  <div class="text-lg text-gray-600 leading-relaxed space-y-4 text-justify">
29
  <p>
30
- PledgeTracker is a system to monitor the fulfilment of political pledges. As part of this study, we will collect your inputs to help evaluate and improve the system. We may also collect your feedback if you submit it via the feedback form. No personal information will be collected, and all data will be anonymised and stored securely. By using the system, you agree to participate in this study under these conditions.
31
  </p>
32
  <p class="text-center">
33
  Please contact
@@ -137,7 +137,7 @@
137
  <div class="container mx-auto px-4 max-w-4xl">
138
  <h2 class="text-2xl font-bold mb-6">About</h2>
139
  <p class="text-gray-700 leading-relaxed">
140
- PledgeTracker is a research prototype developed to support the monitoring of political pledge fulfilment.
141
  This demo is developed by researchers at the University of Cambridge, Queen Mary University London, and Full Fact.
142
  </p>
143
  </div>
 
23
  <section class="py-16 bg-gradient-to-r from-purple-50 to-purple-50 text-center">
24
  <div class="container mx-auto px-4 max-w-3xl">
25
  <h1 class="text-3xl md:text-4xl font-extrabold mb-6">
26
+ <span style="font-variant: small-caps; font-weight: bold;">PledgeTracker</span>: A System for Monitoring the Fulfilment of Pledges
27
  </h1>
28
  <div class="text-lg text-gray-600 leading-relaxed space-y-4 text-justify">
29
  <p>
30
+ <span style="font-variant: small-caps;">PledgeTracker</span> is a system to monitor the fulfilment of political pledges. As part of this study, we will collect your inputs to help evaluate and improve the system. We may also collect your feedback if you submit it via the feedback form. No personal information will be collected, and all data will be anonymised and stored securely. By using the system, you agree to participate in this study under these conditions.
31
  </p>
32
  <p class="text-center">
33
  Please contact
 
137
  <div class="container mx-auto px-4 max-w-4xl">
138
  <h2 class="text-2xl font-bold mb-6">About</h2>
139
  <p class="text-gray-700 leading-relaxed">
140
+ <span style="font-variant: small-caps;">PledgeTracker</span> is a research prototype developed to support the monitoring of political pledge fulfilment.
141
  This demo is developed by researchers at the University of Cambridge, Queen Mary University London, and Full Fact.
142
  </p>
143
  </div>
train_useful.json ADDED
The diff for this file is too large to render. See raw diff