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

Method __init__

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

Source from the content-addressed store, hash-verified

77 """
78
79 def __init__(self):
80 self.data = []
81 self.test_data = []
82 self.pos = 0
83 self.word_vector_dict, self.word_id_dict = load_vectors(VECTORS_BIN)
84 self.dim_info = DimInfo()
85 self.maps = Maps()
86 _, self.dim_info.vec_dim = get_words_sizes(VECTORS_BIN)
87 self.dim_info.x_dim = len(self.word_vector_dict) * self.dim_info.vec_dim
88 self.maps.local_word_id_map = {}
89
90 def clear_word_vector(self):
91 """

Callers

nothing calls this directly

Calls 4

load_vectorsFunction · 0.90
get_words_sizesFunction · 0.90
DimInfoClass · 0.85
MapsClass · 0.85

Tested by

no test coverage detected