Commit
·
8726584
1
Parent(s):
e9c0cd2
lets see how the hihgt works
Browse files
app.py
CHANGED
|
@@ -67,12 +67,12 @@ def extract_entities(sentence):
|
|
| 67 |
].strip() # Ensure we're working with the correct portion of the text
|
| 68 |
entity["surface"] = entity_text
|
| 69 |
entity["entity"] = entity["type"]
|
| 70 |
-
print(f"Entity text: {entity}")
|
| 71 |
|
| 72 |
entities.append(entity)
|
| 73 |
-
|
| 74 |
# Sort entities by their start position
|
| 75 |
-
entities = sorted(entities, key=lambda x: x["start"])
|
| 76 |
return entities
|
| 77 |
|
| 78 |
|
|
|
|
| 67 |
].strip() # Ensure we're working with the correct portion of the text
|
| 68 |
entity["surface"] = entity_text
|
| 69 |
entity["entity"] = entity["type"]
|
| 70 |
+
# print(f"Entity text: {entity}")
|
| 71 |
|
| 72 |
entities.append(entity)
|
| 73 |
+
print(f"Entities: {entities}")
|
| 74 |
# Sort entities by their start position
|
| 75 |
+
# entities = sorted(entities, key=lambda x: x["start"])
|
| 76 |
return entities
|
| 77 |
|
| 78 |
|