Package simplenlg.xmlrealiser.wrapper

Examples of simplenlg.xmlrealiser.wrapper.DocumentRealisation


          RecordSet input = XMLRealiser.getRecording(reader);
          RecordSet output = new RecordSet();
          output.setName(input.getName());

          for (DocumentRealisation test : input.getRecord()) {
            DocumentRealisation testOut = new DocumentRealisation();
            testOut.setName(test.getName());
            testOut.setDocument(test.getDocument());
            String realisation = XMLRealiser.realise(test
                .getDocument());
            testOut.setRealisation(realisation);
            output.getRecord().add(testOut);
          }

          String outFileName = testFile.getAbsolutePath();
          outFileName = outFileName
View Full Code Here


  public void addRecord(simplenlg.xmlrealiser.wrapper.XmlDocumentElement input,
      String output) {
    if (!recordingOn) {
      return;
    }
    DocumentRealisation t = new DocumentRealisation();
    Integer testNumber = record.getRecord().size() + 1;
    String testName = "TEST_" + testNumber.toString();
    t.setName(testName);
    t.setDocument(input);
    t.setRealisation(output);
    record.getRecord().add(t);
  }
View Full Code Here

TOP

Related Classes of simplenlg.xmlrealiser.wrapper.DocumentRealisation

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.