Remove the single quotation marks that enclose the names of the entities
This commit is contained in:
parent
39e7a3c17a
commit
6977db3dd1
1 changed files with 2 additions and 0 deletions
|
|
@ -1428,6 +1428,8 @@ def normalize_extracted_info(name: str, is_entity=False) -> str:
|
|||
# Remove English quotation marks from the beginning and end
|
||||
if len(name) >= 2 and name.startswith('"') and name.endswith('"'):
|
||||
name = name[1:-1]
|
||||
if len(name) >= 2 and name.startswith("'") and name.endswith("'"):
|
||||
name = name[1:-1]
|
||||
|
||||
if is_entity:
|
||||
# remove Chinese quotes
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue