mrfirdauss commited on
Commit
5a12c56
·
verified ·
1 Parent(s): 080c5cb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -113,8 +113,8 @@ def process_tokens(tokens, tag_prefix):
113
  current_entity = {}
114
  current_entity['text'] = token
115
  current_entity['type'] = tag
116
- elif tag.startswith('I-') and tag.endswith(tag_prefix) and current_entity and tag.endswith('GPA'):
117
- current_entity['text'] += '' + token
118
  elif tag.startswith('I-') and tag.endswith(tag_prefix) and current_entity:
119
  # Continue the current entity
120
  current_entity['text'] += ' ' + token
 
113
  current_entity = {}
114
  current_entity['text'] = token
115
  current_entity['type'] = tag
116
+ # elif tag.startswith('I-') and tag.endswith(tag_prefix) and current_entity and tag.endswith('GPA'):
117
+ # current_entity['text'] += '' + token
118
  elif tag.startswith('I-') and tag.endswith(tag_prefix) and current_entity:
119
  # Continue the current entity
120
  current_entity['text'] += ' ' + token