From 467321eedc57058a685f01781d9c7beba59a7c85 Mon Sep 17 00:00:00 2001 From: "Silas S. Brown" <ssb22@cam.ac.uk> Date: Tue, 18 Jun 2019 07:33:28 +0100 Subject: [PATCH] Update Annotator Generator --- annogen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/annogen.py b/annogen.py index 16588a0..0a45616 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+"...") -- GitLab