觀看時間都花在哪裡,找到耗時較多的部分細部觀察
model.batch_analysis(csv_list, pinyin_mode=True)
耗時model.batch_analysis(csv_list, pinyin_mode=True)
model.batch_analysis
的結果,主要都是花時間在 predictZH
、predictEN
。predictZH
predictEN
所使用的 self.predict_words_label(batch_segment_words, pinyin_mode=pinyin_mode)
做進一步測試。self.predict_words_label(batch_segment_words, pinyin_mode=pinyin_mode)
embedding
padding
concat