Spaces:
Runtime error
Runtime error
Adding pos changes
Browse files
app.py
CHANGED
|
@@ -11,11 +11,10 @@ def parse_names(names):
|
|
| 11 |
print(df)
|
| 12 |
output = ""
|
| 13 |
for parsed_name in df['parsed_name']:
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
output += f"{name} (type: {name_type}, score: {prob:.2f})\n"
|
| 19 |
output += "\n"
|
| 20 |
return output
|
| 21 |
|
|
|
|
| 11 |
print(df)
|
| 12 |
output = ""
|
| 13 |
for parsed_name in df['parsed_name']:
|
| 14 |
+
name = parsed_name['name']
|
| 15 |
+
name_type = parsed_name['type']
|
| 16 |
+
prob = parsed_name['prob']
|
| 17 |
+
output += f"{name} (type: {name_type}, score: {prob:.2f})\n"
|
|
|
|
| 18 |
output += "\n"
|
| 19 |
return output
|
| 20 |
|