Module Import alias Import alias alias Import alias identifier Import alias identifier Import alias identifier Import alias identifier FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr BinOpAdd NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Num Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Assign TupleStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpAdd NameLoad BinOpMod Str NameLoad Str Assign NameStore Call NameLoad Print BinOpMod Str NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assert CompareLt SubscriptLoad AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Index Num AttributeLoad NameLoad attr Str Expr Call NameLoad NameLoad NameLoad SubscriptLoad NameLoad Index NameLoad AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index NameLoad Assert CompareEq AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str Assert CompareEq SubscriptLoad AttributeLoad NameLoad attr Index Num AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr If NameLoad body Print BinOpMod Str NameLoad With Call NameLoad BinOpAdd NameLoad BinOpMod Str NameLoad Str NameStore body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Print BinOpMod Str NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults NameLoad body Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword Num Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword Str Expr Call AttributeLoad NameLoad attr Str keyword Str keyword Str keyword NameLoad keyword Str Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr NameLoad With Call NameLoad AttributeLoad NameLoad attr Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad For NameStore Call NameLoad Num BinOpAdd AttributeLoad NameLoad attr Num body Expr Call NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list If CompareEq NameLoad Str body Expr Call NameLoad
N/A N/A optparse N/A os struct N/A cPickle pickle N/A dataLoader dl N/A brnnet rnnet N/A numpy np writeUttHeader N/A N/A fid key uttSize numClasses N/A N/A N/A 
    Writes header for each utterance in Kaldi Style, assumes 
    data written in float32 and C order. 
     N/A N/A N/A fid write N/A key N/A dat N/A N/A struct pack b 0 N/A N/A N/A fid write dat N/A N/A N/A fid write BFM  N/A floatsize N/A N/A struct pack b 4 N/A N/A N/A fid write floatsize N/A dat N/A N/A struct pack i uttSize N/A N/A N/A fid write dat N/A N/A N/A fid write floatsize N/A dat N/A N/A struct pack i numClasses N/A N/A N/A fid write dat N/A writeLogLikes N/A N/A loader nn fn outDir writePickle N/A False N/A N/A N/A data_dict alis keys sizes N/A N/A loader loadDataFileDict fn N/A fid N/A open N/A outDir N/A /loglikelihoods%d.ark fn w N/A lik_dict N/A dict N/A N/A Running file %d fn N/A N/A i k N/A enumerate keys N/A N/A N/A N/A N/A N/A data_dict N/A k shape N/A 1 N/A nn maxBatch Need larger max utt length. N/A N/A writeUttHeader fid k N/A sizes N/A i N/A nn outputDim N/A probs N/A N/A nn costAndGrad N/A data_dict N/A k N/A N/A N/A probs dtype N/A np float32 Probs array malformed. N/A N/A N/A N/A probs shape N/A 0 N/A nn outputDim Probs dimensions mismatch. N/A probs N/A N/A np log probs N/A N/A N/A N/A probs T tofile fid N/A N/A lik_dict N/A k probs N/A N/A N/A fid close N/A writePickle N/A N/A N/A Writing pickle for file %d fn N/A N/A open N/A outDir N/A /loglikelihoods_%d.pk fn wb f N/A N/A N/A N/A pickle dump lik_dict f N/A N/A Done with file %d fn N/A lik_dict N/A run N/A N/A args N/A None N/A N/A usage usage : %prog [options] N/A parser N/A N/A optparse OptionParser usage usage N/A N/A N/A parser add_option --dataDir dest dataDir type string default /scail/group/deeplearning/speech/awni/kaldi-stanford/kaldi-trunk/egs/swbd/s5b/exp/dev_ctc/ N/A N/A N/A parser add_option --numFiles dest numFiles type int default 10 N/A N/A N/A parser add_option --maxUttLen dest maxUttLen type int default 2000 N/A N/A N/A parser add_option --inFile dest inFile type string default None help Saved model N/A N/A N/A parser add_option --outFile dest outFile type string default None help Location to store log likes N/A N/A N/A parser add_option --writePickle action store_true dest writePickle default None help flag to write pickle files of likelihoods N/A N/A opts args N/A N/A parser parse_args args N/A N/A open N/A opts inFile r fid N/A N/A old_opts N/A N/A pickle load fid N/A _ N/A N/A pickle load fid N/A loader N/A N/A dl DataLoader N/A opts dataDir N/A old_opts rawDim N/A old_opts inputDim load_ali False N/A nn N/A N/A rnnet NNet N/A old_opts inputDim N/A old_opts outputDim N/A old_opts layerSize N/A old_opts numLayers N/A opts maxUttLen temporalLayer N/A old_opts temporalLayer train False N/A N/A N/A nn initParams N/A N/A N/A nn fromFile fid N/A i N/A range 1 N/A N/A opts numFiles 1 N/A N/A N/A writeLogLikes loader nn i N/A opts outFile N/A opts writePickle N/A N/A N/A __name__ __main__ N/A N/A N/A run