quyuan 1 年之前
父节点
当前提交
7560e1288b
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      tests/test_cli/lib/calculate_score.py

+ 2 - 0
tests/test_cli/lib/calculate_score.py

@@ -7,6 +7,8 @@ import json
 from lib import scoring
 from nltk.translate.bleu_score import sentence_bleu, SmoothingFunction
 from nltk.tokenize import word_tokenize
+import nltk
+nltk.download('punkt')
 from Levenshtein import distance
 
 class Scoring: