~ubuntu-branches/ubuntu/jaunty/speech-tools/jaunty

« back to all changes in this revision

Viewing changes to main/wagon_main.cc

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Urlichs
  • Date: 2004-07-16 09:25:39 UTC
  • mfrom: (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040716092539-5p1tzif55b8j924e
Tags: 1:1.2.3-8
Added alaw processing code.

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
/*                                                                       */
42
42
/*=======================================================================*/
43
43
#include <stdlib.h>
44
 
#include <iostream.h>
45
 
#include <fstream.h>
 
44
#include <iostream>
 
45
#include <fstream>
46
46
#include <string.h>
47
47
#include "EST_Wagon.h"
48
48
#include "EST_cmd_line.h"
136
136
         "-o <ofile>        File to save output tree in\n"+
137
137
         "-distmatrix <ifile>\n"+
138
138
         "                  A distance matrix for clustering\n"+
 
139
         "-unittracks <ifile>\n"+
 
140
         "                  dir with unit tracks in it\n"+
139
141
         "-quiet            No questions printed during building\n"+
140
142
         "-verbose          Lost of information printing during build\n"+
141
143
         "-predictee <string>\n"+
242
244
        cerr << "wagon: distance matrix is smaller than number of training elements\n";
243
245
        exit(-1);
244
246
    }
 
247
    else if (al.present("-unittracks"))
 
248
    {
 
249
        // This wont do when the list is pruned
 
250
        int i;
 
251
        wgn_UnitTracks = new EST_Track[wgn_dataset.length()];
 
252
        for (i=0; i<wgn_dataset.length(); i++)
 
253
        {
 
254
            char num[1024];
 
255
            sprintf(num,"%d",i);
 
256
            wgn_UnitTracks[i].load((al.val("-unittracks"))+"/"+num+".unit");
 
257
        }
 
258
    }
245
259
 
246
260
    if (al.present("-test"))
247
261
        wgn_load_dataset(wgn_test_dataset,al.val("-test"));