Add first setup for compression

This commit is contained in:
Stephan Porada
2019-11-19 15:21:42 +01:00
parent 1f74ad8a8e
commit e6b27b0970
4 changed files with 27 additions and 7 deletions

View File

@ -230,9 +230,11 @@ class CQiWrapper(CQiClient):
for struct_attr_key in self.attr_strings[key].keys():
struct_entry = self.cl_cpos2struc(self.attr_strings[key][struct_attr_key],
all_cpos)
logger.warning("{}: {}".format(self.attr_strings[key][struct_attr_key], struct_entry))
match_strs = self.cl_struc2str(self.attr_strings[key][struct_attr_key], struct_entry)
logger.warning('{}:{}'.format(self.attr_strings[key][struct_attr_key], match_strs))
has_value = self.corpus_structural_attribute_has_values(self.attr_strings[key][struct_attr_key])
if has_value:
match_strs = self.cl_struc2str(self.attr_strings[key][struct_attr_key], struct_entry)
else:
match_strs = [None for i in struct_entry]
cpos_infos[struct_attr_key] = zip(struct_entry, match_strs)
tmp_list = []
attr_key_list = []