diff options
author | Hui Lan <lanhui@zjnu.edu.cn> | 2019-11-02 13:21:51 +0800 |
---|---|---|
committer | Hui Lan <lanhui@zjnu.edu.cn> | 2019-11-02 13:21:51 +0800 |
commit | 08037e7d5f9be86c6e209a3e5e25c7429a707e3c (patch) | |
tree | 2dee4453c441c5b386778a7991ddcd9fd867edb6 /app/wordfreqCMD.py | |
parent | 7a2d14901d26efdaacec21c8d3b8028c0e4b8b6f (diff) |
app/difficulty.py: adjust difficulty level to reflect test level
If a word appears in CET4 test, it has a difficulty level of 4.
If a word appears in CET6 test, it has a difficulty level of 6.
If a word does not appear in the above two tests, then its difficulty level is determined by its frequency.
If this word is not in the frequency table, then its level is 1.
If this word is in the frequency tables, then its level is determined as follows.
log2( ((F+1) / (f+1)) ), where F is the largest frequency, and f is the word's frequency.
If f=F, then log2(1) = 0, i.e., its difficulty level is 0.
If f<F, then log2(1) is a positive value.
Diffstat (limited to 'app/wordfreqCMD.py')
0 files changed, 0 insertions, 0 deletions