Package joshua.corpus.suffix_array

Examples of joshua.corpus.suffix_array.Compile


        joshDirName = joshDir.getAbsolutePath();
        joshDir.delete();
      }
     
     
      Compile compileJoshDir = new Compile();
      compileJoshDir.setSourceCorpus(sourceCorpusFileName);
      compileJoshDir.setTargetCorpus(targetCorpusFileName);
      compileJoshDir.setAlignments(alignmentFileName);
      compileJoshDir.setOutputDir(joshDirName);
      compileJoshDir.execute();
     
      ExtractRules extractRules = new ExtractRules();
      extractRules.setJoshDir(joshDirName);
      extractRules.setTestFile(testFileName);
      extractRules.setOutputFile(rulesFileName);
View Full Code Here


      File joshDir = File.createTempFile(new Date().toString(), "josh");
      joshDirName = joshDir.getAbsolutePath();
      joshDir.delete();
    }
   
    Compile compileJoshDir = new Compile();
    compileJoshDir.setSourceCorpus(sourceFileName);
    compileJoshDir.setTargetCorpus(targetFileName);
    compileJoshDir.setAlignments(alignmentFileName);
    compileJoshDir.setOutputDir(joshDirName);
    compileJoshDir.execute();
   
    ExtractRules extractRules = new ExtractRules();
    extractRules.setSentenceInitialX(sentenceInitialX);
    extractRules.setSentenceFinalX(sentenceFinalX);
    extractRules.setEdgeXViolates(violatingX);
View Full Code Here

                outputDir = file.getAbsolutePath();
            }     
      }
     
      if (outputDir != null) {
        Compile compile = new Compile();
        compile.setSourceCorpus(source);
        compile.setTargetCorpus(target);
        compile.setAlignments(alignments);
        compile.setOutputDir(outputDir);
        logger.info("Output directory == " + outputDir);
//        this.progressBar.setValue(50);
//        this.progressBar.setStringPainted(true);//setStringPainted
//        this.progressBar.setVisible(true);
       
        this.repaint();
        try {
          compile.execute();
          this.progressBar.setVisible(false);
        } catch (IOException e1) {
          // TODO Auto-generated catch block
          e1.printStackTrace();
        }
View Full Code Here

TOP

Related Classes of joshua.corpus.suffix_array.Compile

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.