rosemariafontana commited on
Commit
716366c
Β·
verified Β·
1 Parent(s): 9af0f9c

somehow autocompleted to wrong word

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -46,7 +46,7 @@ def extract_features(tokens, labels):
46
  # Check if the token matches a partial date pattern
47
  elif re.match(partial_date_pattern, token):
48
  print(f"Debug -- Potentially building date: Token Start {token} After Token")
49
- current_date += LayoutLMv3ForTokenClassification
50
  else:
51
  if current_date:
52
  merged_entities.append((current_date, 'date'))
 
46
  # Check if the token matches a partial date pattern
47
  elif re.match(partial_date_pattern, token):
48
  print(f"Debug -- Potentially building date: Token Start {token} After Token")
49
+ current_date += token
50
  else:
51
  if current_date:
52
  merged_entities.append((current_date, 'date'))