MCPcopy Create free account
hub / github.com/chinawithfrank/ChatBotCourse / __init__

Method __init__

tf_classify_demo/sample_data.py:47–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

45 """
46
47 def __init__(self):
48 self.local_word_id_map = {}
49 self.local_group_id_map = {"1":0, "2":1, "3":2, "4":3, "5":4}
50 self.real_group_id_map = {}
51 for key in self.local_group_id_map:
52 value = str(self.local_group_id_map[key])
53 self.real_group_id_map[value] = int(key)
54
55 def get_local_word_id_map(self):
56 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected