rosemariafontana commited on
Commit
f5a15e3
Β·
verified Β·
1 Parent(s): e5ec1a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -29,6 +29,7 @@ def extract_features(tokens, labels):
29
  print(f"Debug -- Potentially creating date")
30
  # Loop through tokens and labels
31
  for token, label in zip(tokens, labels):
 
32
  if label == 'LABEL_1':
33
  # Date logic
34
  if re.match(r"^\d{1,2}/$", token) or re.match(r"^\d{4}$", token):
 
29
  print(f"Debug -- Potentially creating date")
30
  # Loop through tokens and labels
31
  for token, label in zip(tokens, labels):
32
+ print(f"Debug -- Potentially creating date,, token: {token} label: {label}")
33
  if label == 'LABEL_1':
34
  # Date logic
35
  if re.match(r"^\d{1,2}/$", token) or re.match(r"^\d{4}$", token):