返回 DeepSeek-Reasonix
verify.sh
1 #!/usr/bin/env bash
2 set -e
3 export PYTHONPYCACHEPREFIX="$(mktemp -d)"
4
5 diff <(python3 wordfreq.py prose.txt) - <<'EOF'
6 the 6
7 fen 3
8 stone 3
9 heron 2
10 mist 2
11 was 2
12 a 1
13 and 1
14 crossed 1
15 knew 1
16 EOF
17
18 diff <(python3 wordfreq.py prose.txt --top 3) - <<'EOF'
19 the 6
20 fen 3
21 stone 3
22 EOF
23
24 diff <(python3 wordfreq.py prose.txt --stopwords stopwords.txt --top 5) - <<'EOF'
25 fen 3
26 stone 3
27 heron 2
28 mist 2
29 crossed 1
30 EOF
31
31 lines BASH