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

update for gpa no space

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('GPA') and current_entity:
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