Spaces:
Runtime error
Runtime error
update for gpa no space
Browse files
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 |
-
|
| 117 |
-
|
| 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
|