diff --git a/annogen.py b/annogen.py index 16588a08e6373e5084194a2f909f3c2801fc9c8e..0a4561676e2bab1d95d84f04abd130b44252db52 100755 --- a/annogen.py +++ b/annogen.py @@ -4834,7 +4834,7 @@ if main and not compile_only: i=[[markDown(w) for w in splitWords(phrase)] for phrase in splitWords(corpus_unistr,phrases=True)] del corpus_unistr sys.stderr.write(" calling PairPriorities...\n") - out="".join(w+"\t"+str(f)+"\n" for w,f in PairPriorities(i,existingFreqs)).encode(outcode) + out="".join(w+"\t"+str(f)+"\n" for w,f in PairPriorities(i,existingFreqs) if f).encode(outcode) # (don't open the output before here, in case exception) if existingFreqs: sys.stderr.write("Updating "+priority_list+"...") else: sys.stderr.write("Writing "+priority_list+"...")