From 67e921ba60df76640005fa2838d80808b311bc2d Mon Sep 17 00:00:00 2001 From: Hui Lan Date: Tue, 23 May 2023 22:25:40 +0800 Subject: [PATCH] difficulty.py: todo. --- app/difficulty.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/difficulty.py b/app/difficulty.py index 1183999..a8ffdee 100644 --- a/app/difficulty.py +++ b/app/difficulty.py @@ -48,6 +48,7 @@ def get_difficulty_level_for_user(d1, d2): d1 用户不会的词 在d2的后面添加单词,没有新建一个新的字典 """ + # TODO: convert_test_type_to_difficulty_level() should not be called every time. Each word's difficulty level should be pre-computed. d2 = convert_test_type_to_difficulty_level(d2) # 根据d2的标记评级{'apple': 4, 'abandon': 4, ...} stemmer = snowballstemmer.stemmer('english')