code: def dict_print(self, output_file="dict.csv"):
  
          
  
          with codecs.open(output_file, "w", encoding='utf-8') as f:
                  for (v, k) in self.token_key.items():
                      f.write("%s,%d\n" % (v, k))
docs: Print mapping from tokens to numeric indices.