def _generate_tree(self): return { "tokens": merge_strings(self.tokens), "topics": merge_strings(self.topics) if self.topics is not None else False, "matrix": disassemble_sparse_matrix(self.matrix) }
def _generate_tree(self): return { "matrix": disassemble_sparse_matrix(self._matrix), "files": merge_strings(self._files), "deps": merge_strings(self._deps), "ind_to_langs": merge_strings( [self._ind_to_langs[ind] for ind in range(len(self._files))]), "ind_to_repos": merge_strings( [self._ind_to_repos[ind] for ind in range(len(self._files))]), }
def _generate_tree(self): return {"cc": self.id_to_cc, "elements": merge_strings(self.id_to_element), "buckets": disassemble_sparse_matrix(self.id_to_buckets)}
def _generate_tree(self): return { "documents": merge_strings(self._documents), "matrix": disassemble_sparse_matrix(self._matrix), "tokens": merge_strings(self.tokens) }