2d267b27382ef99b8e58eb561cee339f4cd0b2d5,10-structured/bilstm-teacher-forcing-tagger.py,,calc_scores,#Any#,65

Before Change


    word_reps = LSTM.transduce([LOOKUP[x] for x in words])

    // Softmax scores
    W, b = dy.parameter(W_sm, b_sm)
    scores = [dy.affine_transform([b, W, x]) for x in word_reps]

    return scores

After Change


    // Transduce all batch elements with an LSTM
    fwd_init = fwdLSTM.initial_state()
    fwd_word_reps = fwd_init.transduce(word_embs)
    bwd_init = bwdLSTM.initial_state()
    bwd_word_reps = bwd_init.transduce(reversed(word_embs))

    combined_word_reps = [dy.concatenate([f, b]) for f, b in zip(fwd_word_reps, reversed(bwd_word_reps))]

    // Softmax scores
    W = dy.parameter(W_sm)
    b = dy.parameter(b_sm)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: neubig/nn4nlp-code
Commit Name: 2d267b27382ef99b8e58eb561cee339f4cd0b2d5
Time: 2017-09-26
Author: hunterhector@gmail.com
File Name: 10-structured/bilstm-teacher-forcing-tagger.py
Class Name:
Method Name: calc_scores


Project Name: gboeing/osmnx
Commit Name: cb357e90338afa0e482a25531b501d25f39c42ce
Time: 2017-03-02
Author: gboeing@berkeley.edu
File Name: osmnx/plot.py
Class Name:
Method Name: plot_figure_ground


Project Name: WZBSocialScienceCenter/tmtoolkit
Commit Name: cefe625f707d3fd0241f4ad682d2d991233db200
Time: 2017-10-12
Author: markus.konrad@wzb.eu
File Name: tmtoolkit/lda_utils/common.py
Class Name:
Method Name: results_by_parameter