PageRenderTime 1ms CodeModel.GetById 3ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/python/engine/PinYin/tools/filter.awk

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