Change entity type formatting from title case to lowercase without spaces
This commit is contained in:
parent
c2985429ba
commit
7c463f0fb5
1 changed files with 2 additions and 2 deletions
|
|
@ -354,8 +354,8 @@ async def _handle_single_entity_extraction(
|
|||
)
|
||||
return None
|
||||
|
||||
# Captitalize first letter of entity_type
|
||||
entity_type = entity_type.title()
|
||||
# Remove spaces and convert to lowercase
|
||||
entity_type = entity_type.replace(" ", "").lower()
|
||||
|
||||
# Process entity description with same cleaning pipeline
|
||||
entity_description = sanitize_and_normalize_extracted_text(record_attributes[3])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue