summaryrefslogtreecommitdiff
path: root/gi/posterior-regularisation
diff options
context:
space:
mode:
authordesaicwtf <desaicwtf@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 15:21:59 +0000
committerdesaicwtf <desaicwtf@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-20 15:21:59 +0000
commitc44bf3a2a6fadf665f6b5eaa339f7e309e7ed50e (patch)
treebfea63a31967e0caace7fafe30d1c8bbf0a02370 /gi/posterior-regularisation
parent93f3b9ddb40bbe173d6297fa33bddf80ee974fce (diff)
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@334 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/posterior-regularisation')
-rw-r--r--gi/posterior-regularisation/prjava/src/phrase/Trainer.java6
1 files changed, 4 insertions, 2 deletions
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();