Skip to content

Commit

Permalink
make remove_types invocation more specific
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Oct 7, 2023
1 parent 48eae7f commit 73719f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions yente/data/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ def _clean_phonetic(original: str) -> Optional[str]:
# be extra picky what phonemes are put into the search index, so that
# we can reduce the number of false positives.
text = clean_entity_prefix(original)
cleaned = clean_name_light(text)
cleaned = remove_types(text, clean=clean_name_light)
cleaned = decompose_nfkd(cleaned)
cleaned = category_replace(cleaned)
cleaned = remove_types(cleaned)
return cleaned


Expand Down

0 comments on commit 73719f2

Please sign in to comment.