behnamsa commited on
Commit
fe36855
·
1 Parent(s): 2167368

Update pipeline.py

Browse files
Files changed (1) hide show
  1. 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