Explorar el Código

amend file path error

chenhaiyang hace 5 años
padre
commit
291a8dd3c2
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      sim/text_sim.py

+ 1 - 1
sim/text_sim.py

@@ -10,7 +10,7 @@ from .words_sim import SimCilin
 
 base_path = os.path.abspath(__file__)
 folder = os.path.dirname(base_path)
-data_path = os.path.join(folder, 'cilin_dict.txt')
+data_path = os.path.join(folder, 'cilin_words.txt')
 
 ci_lin = SimCilin()
 jieba.load_userdict(data_path)