GraphResearcher / scripts /fix_bom.py
yugbirla's picture
Sync GraphRAG fusion quality cleanup and evaluation files
b7d0804
Raw
History Blame Contribute Delete
282 Bytes
from pathlib import Path
files_to_fix = [
Path("app/main.py"),
]
for path in files_to_fix:
text = path.read_text(encoding="utf-8-sig")
text = text.replace("\ufeff", "")
path.write_text(text, encoding="utf-8")
print(f"Fixed hidden BOM characters in {path}")