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
commit5571fbb90be0921738afeb382a6c1b5059228520 (patch)
tree65ce7f8a39d8ebb3dcc2438f43ed27e610436fa9 /gi/posterior-regularisation
parentb6687bbea08eaa807214e7abca3ae6ff5557f4e4 (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();