/python/engine/PinYin/tools/filter.awk
http://scim-python.googlecode.com/ · AWK · 9 lines · 8 code · 0 blank · 1 comment · 7 complexity · a2d42a26130b2330c7be3d03fc4f422a MD5 · raw file
- #!/usr/bin/gawk -f
- {
- _len = length ($1)
- _freq = int ($3)
- if ((_len == 2 && _freq > 20000) ||
- (_len == 3 && _freq > 100000) ||
- (_len == 4 && _freq > 500000))
- print $0
- }