Update pipeline.py
Browse files- pipeline.py +3 -1
pipeline.py
CHANGED
@@ -12,8 +12,10 @@ class PreTrainedPipeline():
|
|
12 |
def __init__(self, path):
|
13 |
self.model_dir = path + "/saved_model"
|
14 |
self.t2id_path = path + "/t2id.json"
|
15 |
-
self.stopwords_path = path + "/stopwords.txt"
|
16 |
self.id2h_path = path + "/id2h.json"
|
|
|
|
|
|
|
17 |
self.t2id = json.load(open(self.t2id_path,encoding="utf8"))
|
18 |
self.id2h = json.load(open(self.id2h_path,encoding="utf8"))
|
19 |
|
|
|
12 |
def __init__(self, path):
|
13 |
self.model_dir = path + "/saved_model"
|
14 |
self.t2id_path = path + "/t2id.json"
|
|
|
15 |
self.id2h_path = path + "/id2h.json"
|
16 |
+
self.stopwords_path = path + "/stopwords.txt"
|
17 |
+
self.comparison_matrix_path = path + "/comparison_matrix.npz"
|
18 |
+
|
19 |
self.t2id = json.load(open(self.t2id_path,encoding="utf8"))
|
20 |
self.id2h = json.load(open(self.id2h_path,encoding="utf8"))
|
21 |
|