diff options
author | desaicwtf <desaicwtf@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-20 15:21:59 +0000 |
---|---|---|
committer | desaicwtf <desaicwtf@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-20 15:21:59 +0000 |
commit | c44bf3a2a6fadf665f6b5eaa339f7e309e7ed50e (patch) | |
tree | bfea63a31967e0caace7fafe30d1c8bbf0a02370 /gi/posterior-regularisation/prjava | |
parent | 93f3b9ddb40bbe173d6297fa33bddf80ee974fce (diff) |
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@334 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'gi/posterior-regularisation/prjava')
-rw-r--r-- | gi/posterior-regularisation/prjava/src/phrase/Trainer.java | 6 |
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(); |