#!/bin/bash

# Takes a training list on the standard input

tdata=$1
ti=$2
tj=$3
NP=$4

rm -rf $tj/trainlist.d
mkdir $tj/trainlist.d

python bin/split_list.py -np $NP "$tj/trainlist.d/%d" "$tdata/mfcc/%s.mfcc" "$ti/lab/%s.lab" ||
	die.sh "Split_list fails" || exit 1
