get_base_form_to_variants_dict#

get_base_form_to_variants_dict(uniques: Iterable[str]) Dict[str, Set[str]][source]#

Create dict of base-form of the uniques to their values.

function gets a set of strings, and returns a dictionary of shape Dict[str, Set] the key being the “base_form” (a clean version of the string), and the value being a set of all existing original values. This is done using the StringCategory class.