yangdx
commited on
Commit
·
ee2f68f
1
Parent(s):
d3d4fd8
Fix linting
Browse files- lightrag/utils.py +1 -1
lightrag/utils.py
CHANGED
|
@@ -1006,7 +1006,7 @@ def get_content_summary(content: str, max_length: int = 250) -> str:
|
|
| 1006 |
return content[:max_length] + "..."
|
| 1007 |
|
| 1008 |
|
| 1009 |
-
def normalize_extracted_info(name: str, is_entity
|
| 1010 |
"""Normalize entity/relation names and description with the following rules:
|
| 1011 |
1. Remove spaces between Chinese characters
|
| 1012 |
2. Remove spaces between Chinese characters and English letters/numbers
|
|
|
|
| 1006 |
return content[:max_length] + "..."
|
| 1007 |
|
| 1008 |
|
| 1009 |
+
def normalize_extracted_info(name: str, is_entity=False) -> str:
|
| 1010 |
"""Normalize entity/relation names and description with the following rules:
|
| 1011 |
1. Remove spaces between Chinese characters
|
| 1012 |
2. Remove spaces between Chinese characters and English letters/numbers
|