MCPcopy
hub / github.com/Tencent/NeuralNLP-NeuralClassifier / _clear_dict

Method _clear_dict

dataset/dataset.py:274–280  ·  view source on GitHub ↗

Clear all dict

(self)

Source from the content-addressed store, hash-verified

272 self.count_list[label_dict_idx].append(label)
273
274 def _clear_dict(self):
275 """Clear all dict
276 """
277 for dict_map in self.dicts:
278 dict_map.clear()
279 for id_to_vocab_dict in self.id_to_vocab_dict_list:
280 id_to_vocab_dict.clear()
281
282 def _print_dict_info(self, count_list=False):
283 """Print dict info

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected