def _load_file()

in osci/preprocess/match_company/company_domain_matcher.py [0:0]


    def _load_file(self):
        with open(self.path) as f:
            match_list = yaml.load(f, Loader=yaml.FullLoader) or []
            for company in match_list:
                name = company.get('company')
                for domain in company.get('domains') or []:
                    self._domain2company[domain] = name
                for regex in company.get('regex') or []:
                    self._regex2company[regex] = name