def init_params_bi(options):
 params = OrderedDict()
 params['Wemb'] = norm_weight(options['n_words_src'], options['dim_word'])
 params = get_layer(options['encoder'])[0](options, params, prefix='encoder', nin=options['dim_word'], dim=options['dim'])
 params = get_layer(options['encoder'])[0](options, params, prefix='encoder_r', nin=options['dim_word'], dim=options['dim'])
 return params

def init_params_bi ( options ) : params = OrderedDict ( ) params [ 'Wemb' ] = norm_weight ( options [ 'n_words_src' ] , options [ 'dim_word' ] ) params = get_layer ( options [ 'encoder' ] ) [ 0 ] ( options , params , prefix = 'encoder' , nin = options [ 'dim_word' ] , dim = options [ 'dim' ] ) params = get_layer ( options [ 'encoder' ] ) [ 0 ] ( options , params , prefix = 'encoder_r' , nin = options [ 'dim_word' ] , dim = options [ 'dim' ] ) return params
initialize all paramters needed for bidirectional encoder .