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

Method __init__

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

Source from the content-addressed store, hash-verified

19 """
20
21 def __init__(self):
22 # 词向量有多少维
23 self.vec_dim = 0
24 # 样本输入的x有多少维
25 self.x_dim = 0
26 # 当前最大的词编号是多大
27 self.max_word_id = -1
28
29 def get_vec_dim(self):
30 """

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected