sgnlp.models.ufd.utils.get_source2target_domain_mapping¶
-
get_source2target_domain_mapping
(source_domains: List[str], target_domains: List[str]) → Dict[str, List[str]][source]¶ Helper function to return cross domains keys for each domains.
- Parameters
source_domains (List[str]) – list of all source domains
target_domains (List[str]) – list of all target domains
- Returns
return a list of cross domains per domain keys.
- Return type
Dict[str, List[str]]