MCPcopy Create free account
hub / github.com/TIGER-AI-Lab/LongRAG / _normalize

Function _normalize

utils/wiki_util.py:7–11  ·  view source on GitHub ↗

Normalize Unicode strings. Necessary for text which contains non-ASCII characters.

(text)

Source from the content-addressed store, hash-verified

5
6
7def _normalize(text):
8 """
9 Normalize Unicode strings. Necessary for text which contains non-ASCII characters.
10 """
11 return unicodedata.normalize("NFD", text)
12
13
14def convert_html(text):

Callers 7

load_dpr_wikiFunction · 0.90
normalize_answerFunction · 0.90
has_correct_answerFunction · 0.90
process_wikiFunction · 0.90
process_wikiFunction · 0.90
get_hyperlinkFunction · 0.85
remove_hyperlinkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected