1
0
Fork 0

difficulty.py: todo.

Alpha-snapshot20230519
Hui Lan 2023-05-23 22:25:40 +08:00
parent a5c3564f15
commit 67e921ba60
1 changed files with 1 additions and 0 deletions

View File

@ -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')