def __init__(self, opt: Opt, shared: PT.TShared = None):
     self.blank_image_id = '0000'
     super().__init__(opt, shared)
     if shared is not None:
         self.valid_image_ids = shared['valid_image_ids']
     if self.image_features_dict is not None:
         self.image_features_dict[
             self.blank_image_id] = self.blank_image_features
     self.multi_ref = opt.get('igc_multi_ref', False)
示例#2
0
 def __init__(self, opt: Opt, shared=None):
     opt = deepcopy(opt)
     self.datatype = get_dtype(opt)
     opt['datafile'] = _path(opt)
     self.include_persona = opt.get('include_persona',
                                    CONST.INCLUDE_PERSONA_DEFAULT)
     self.skip_empty_text = opt.get('skip_empty_text',
                                    CONST.SKIP_ON_EMPTY_TEXT_DEFAULT)
     self.text_flatten_delimeter = opt.get('delimiter', '\n')
     self.docs_delim = opt.get('docs_delimiter', '\n')
     self.docs_titles_delimeter = opt.get('docs_title_delimiter', '\n')
     self.doc_lines_delim = opt.get('doc_lines_delimiter', '\n')
     self.id = 'WizInternetBase'
     super().__init__(opt, shared=shared)