Package simplenlg.xmlrealiser.wrapper

Examples of simplenlg.xmlrealiser.wrapper.RecordSet


      }

      for (File testFile : testFiles) {
        try {
          FileReader reader = new FileReader(testFile);
          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
              .replaceFirst("\\.xml$", "Out.xml");
View Full Code Here


      }

      recordingFile = File.createTempFile("xmlrealiser", ".xml",
          recordingDir);
      recordingOn = true;
      record = new RecordSet();
    }
  }
View Full Code Here

TOP

Related Classes of simplenlg.xmlrealiser.wrapper.RecordSet

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.