PageRenderTime 20ms CodeModel.GetById 19ms RepoModel.GetById 0ms 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)
  5. if ((_len == 2 && _freq > 20000) ||
  6. (_len == 3 && _freq > 100000) ||
  7. (_len == 4 && _freq > 500000))
  8. print $0
  9. }