Home | History | Annotate | Download | only in shaping

Lines Matching refs:ngram

222 		gens = tuple (Ngram.generator (n) for n in ns)
230 for ngram in gen (test.unicodes):
231 if ngram not in allgrams:
232 allgrams[ngram] = Stats ()
233 allgrams[ngram].add (test)
236 for ngram, stats in allgrams.iteritems ():
238 importantgrams[ngram] = stats
242 for ngram, stats in allgrams.iteritems ():
243 print "zscore: %9f failed: %6d passed: %6d ngram: <%s>" % (stats.zscore (allstats), stats.failed.count, stats.passed.count, ','.join ("U+%04X" % u for u in ngram))
324 class Ngram: