MCPcopy
hub / github.com/alirezamika/autoscraper / normalize

Function normalize

autoscraper/utils.py:36–39  ·  view source on GitHub ↗
(item)

Source from the content-addressed store, hash-verified

34
35
36def normalize(item):
37 if not isinstance(item, str):
38 return item
39 return unicodedata.normalize("NFKD", item.strip())
40
41
42def text_match(t1, t2, ratio_limit):

Callers 2

_get_soupMethod · 0.90
buildMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected