516ae639376f5baa966ab38ed31bc26a0171ce9b,anago/data/reader.py,,get_glove_vectors,#Any#Any#Any#,77

Before Change


        dim: (int) dimension of embeddings
    
    //embeddings = np.zeros([len(vocab), dim])
    limit = np.sqrt(3 / dim)
    embeddings = np.random.uniform(-limit, limit, size=(len(vocab), dim))
    if not glove_filename:
        return embeddings
    with open(glove_filename) as f:

After Change


        glove_filename: a path to a glove file
        dim: (int) dimension of embeddings
    
    embeddings = np.zeros([len(vocab), dim])
    //limit = np.sqrt(3 / dim)
    //embeddings = np.random.uniform(-limit, limit, size=(len(vocab), dim))
    if not glove_filename:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Hironsan/anago
Commit Name: 516ae639376f5baa966ab38ed31bc26a0171ce9b
Time: 2017-07-24
Author: light.tree.1.13@gmail.com
File Name: anago/data/reader.py
Class Name:
Method Name: get_glove_vectors


Project Name: OpenNMT/OpenNMT-py
Commit Name: 31e7f40c3381aac21e8665d0b5706bceddd9de94
Time: 2017-06-25
Author: srush@sum1gpu01.rc.fas.harvard.edu
File Name: onmt/Models.py
Class Name: Decoder
Method Name: forward


Project Name: GPflow/GPflow
Commit Name: 5809cb0b339612434f4f332a91a2cd3e4570c34d
Time: 2018-02-26
Author: james@prowler.io
File Name: gpflow/transforms.py
Class Name: LowerTriangular
Method Name: backward_tensor