Module Import alias identifier Import alias identifier Import alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body With Call NameLoad NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad With Call NameLoad NameLoad Str NameStore body Assign NameStore Call NameLoad Lambda arguments args NameParam defaults SubscriptLoad Call AttributeLoad Call AttributeLoad NameLoad attr attr Index Num Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num Str With Call NameLoad NameLoad Str NameStore body Assign NameStore Dict For NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr attr Assign SubscriptStore NameLoad Index SubscriptLoad NameLoad Index Num Call AttributeLoad Str attr ListComp SubscriptLoad NameLoad Index Call NameLoad NameLoad comprehension NameStore SubscriptLoad NameLoad Slice Num Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Num For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad NameLoad attr Print NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr AttributeLoad NameLoad attr Print NameLoad NameLoad Print SubscriptLoad NameLoad Index NameLoad AugAssignAdd NameStore Num If CompareGtE NameLoad NameLoad body Break decorator_list If CompareEq NameLoad Str body Assign NameStore Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore BinOpAdd NameLoad Str Assign NameStore Str Expr Call NameLoad NameLoad NameLoad NameLoad Num keyword NameLoad
N/A N/A numpy np N/A cPickle pickle N/A decoder main N/A N/A in_file char_file ali_file num_to_print lm_file N/A None N/A N/A N/A open in_file r f N/A N/A ll_dict N/A N/A pickle load f N/A N/A open char_file r f N/A N/A phone_list N/A map N/A N/A N/A x N/A N/A N/A N/A N/A N/A x rstrip split N/A 0 N/A N/A f readlines N/A N/A N/A phone_list insert 0 _ N/A N/A open ali_file r f N/A N/A ali_dict N/A N/A l N/A N/A f readlines N/A N/A l_split N/A N/A N/A N/A l rstrip split N/A N/A ali_dict N/A N/A l_split N/A 0 N/A N/A join N/A N/A phone_list N/A N/A int x N/A x N/A l_split N/A 1 N/A dec_argmax N/A N/A decoder ArgmaxDecoder N/A N/A N/A dec_argmax load_chars char_file N/A dec_lm N/A N/A decoder BeamLMDecoder N/A N/A N/A dec_lm load_chars char_file N/A N/A N/A dec_lm load_lm lm_file N/A n_printed 0 N/A N/A i k N/A enumerate ll_dict N/A N/A N/A hyp_argmax score_argmax N/A N/A dec_argmax decode N/A N/A N/A ll_dict N/A k astype N/A np double N/A score_argmax hyp_argmax N/A N/A hyp_lm score_lm N/A N/A dec_lm decode N/A N/A N/A ll_dict N/A k astype N/A np double N/A score_lm hyp_lm N/A N/A ali_dict N/A k N/A n_printed 1 N/A N/A n_printed num_to_print N/A N/A N/A N/A N/A __name__ __main__ N/A N/A ll_path /scail/scratch/group/deeplearning/speech/amaas/kaldi-stanford/stanford-nnet/ctc_fast/swbd_eval2000_lik/ N/A in_file N/A ll_path loglikelihoods_1.pk N/A char_file N/A ll_path chars.txt N/A ali_file N/A ll_path alis1.txt N/A lm_file /scail/group/deeplearning/speech/amaas/kaldi-stanford/kaldi-trunk/egs/wsj/s6/data/local/lm/text_char.2g.arpa N/A N/A main in_file char_file ali_file 10 lm_file lm_file