From c44bf3a2a6fadf665f6b5eaa339f7e309e7ed50e Mon Sep 17 00:00:00 2001 From: desaicwtf Date: Tue, 20 Jul 2010 15:21:59 +0000 Subject: git-svn-id: https://ws10smt.googlecode.com/svn/trunk@334 ec762483-ff6d-05da-a07a-a48fb63a330f --- gi/posterior-regularisation/prjava/src/phrase/Trainer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gi/posterior-regularisation/prjava/src') diff --git a/gi/posterior-regularisation/prjava/src/phrase/Trainer.java b/gi/posterior-regularisation/prjava/src/phrase/Trainer.java index f9fd8485..202930f5 100644 --- a/gi/posterior-regularisation/prjava/src/phrase/Trainer.java +++ b/gi/posterior-regularisation/prjava/src/phrase/Trainer.java @@ -82,8 +82,10 @@ public class Trainer System.out.println("Reading concordance from " + infile); corpus = Corpus.readFromFile(FileUtil.reader(infile)); corpus.printStats(System.out); - corpus1 = Corpus.readFromFile(FileUtil.reader(infile1)); - corpus1.printStats(System.out); + if(options.has("in1")){ + corpus1 = Corpus.readFromFile(FileUtil.reader(infile1)); + corpus1.printStats(System.out); + } } catch (IOException e) { System.err.println("Failed to open input file: " + infile); e.printStackTrace(); -- cgit v1.2.3