shuxinyin / NER-Pytorch-Chinese

Implemention of NER model on chinese dataset.
MIT License
63 stars 10 forks source link

process.py中的文件找不到 #4

Open July199 opened 1 year ago

July199 commented 1 year ago

您好,在process.py文件中的init函数下(如下代码所示) def init(self, pretrain_embed_path, output_path, max_scan_num, data_files, label_path, overwrite): word_embed_path = join(self.data_path, 'word_embedding.pkl') word_vocab_path = join(self.data_path, 'word_vocab.pkl') word_vocabpath = join(self.data_path,'word_vocab.pkl) trie_tree_path = join(self.data_path, 'trie_tree.pkl') 以上self.data_path下中的 'word_embedding.pkl'、'word_vocab.pkl‘、'word_vocab.pkl’、'trie_tree.pkl'都找不到是什么原因呢?

shuxinyin commented 1 year ago

可以把 def init(self, pretrain_embed_path, output_path, max_scan_num, data_files, label_path, overwrite) 这个函数仔细看完哈。 这里只是定义好这个word_embed_path 路径地址, 无则会生成存在这个路径下, 有则从这里加载。