Files
database/scripts/freq.py
T
2021-10-19 13:27:06 +07:00

8 lines
128 B
Python

import sys
from wordfreq import zipf_frequency
for s in sys.stdin:
w = s.rstrip()
print(f"{w}={zipf_frequency(w, 'ja')}")