a901f23f1d47519508df7d96eef815c725ef3d3a,transcribe.py,,,#,98

Before Change


    out = model(Variable(spect, volatile=True))
    out = out.transpose(0, 1)  // TxNxH

    if args.word_json:
        results = word_decode(decoder, out.data, model=model, window=1 / (10 * audio_conf["window_size"]),
                              time_div=1 / audio_conf["window_size"])
        print(json.dumps(results))
    else:
        decoded_output, decoded_offsets = decoder.decode(out.data)
        for b in range(len(decoded_output)):
            for pi in range(max(args.top_paths, len(decoded_output[b]))):
                print(decoded_output[b][pi])
                if args.offsets:
                    print(decoded_offsets[b][pi])

After Change


    out = model(Variable(spect, volatile=True))
    out = out.transpose(0, 1)  // TxNxH
    decoded_output, decoded_offsets = decoder.decode(out.data)
    print(json.dumps(decode_results(decoded_output, decoded_offsets)))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: SeanNaren/deepspeech.pytorch
Commit Name: a901f23f1d47519508df7d96eef815c725ef3d3a
Time: 2017-12-06
Author: seannaren@hotmail.com
File Name: transcribe.py
Class Name:
Method Name:


Project Name: tyarkoni/pliers
Commit Name: b9f0e3feb28a46b6ca7e4f533e4dfeb4b8fb14aa
Time: 2018-03-20
Author: delavega@utexas.edu
File Name: pliers/utils/updater.py
Class Name:
Method Name: hash_data


Project Name: pmorissette/ffn
Commit Name: e44e9c99acd83904c9cad65dcf0d248782c19e4d
Time: 2014-04-14
Author: pm@rdacap.com
File Name: ffn/utils.py
Class Name:
Method Name: _memoize