rosemariafontana commited on
Commit
ef7980f
Β·
verified Β·
1 Parent(s): 7e409fd

too many equal signs

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -24,8 +24,7 @@ def extract_features(tokens, labels):
24
 
25
  # Loop through tokens and labels
26
  for token, label in zip(tokens, labels):
27
- if label === 'LABEL_1':
28
-
29
  # Date logic
30
  if re.match(r"^\d{1,2}/$", token) or re.match(r"^\d{4}$", token):
31
  current_date += token
 
24
 
25
  # Loop through tokens and labels
26
  for token, label in zip(tokens, labels):
27
+ if label == 'LABEL_1':
 
28
  # Date logic
29
  if re.match(r"^\d{1,2}/$", token) or re.match(r"^\d{4}$", token):
30
  current_date += token