bc1351d47d9fe83bc6c7830a8563ddb874953ed4,onmt/model_builder.py,,build_base_model,#Any#Any#Any#Any#,165
Before Change
// Build decoder.
feat_fields = [fields[k]
for k in inputters.collect_features(fields, "tgt")]
tgt_emb = build_embeddings(
model_opt, fields["tgt"], feat_fields, for_encoder=False)
After Change
// Build encoder.
if model_opt.model_type == "text":
src_fields = [f for n, f in fields["src"]]
src_emb = build_embeddings(model_opt, src_fields[0], src_fields[1:])
encoder = build_encoder(model_opt, src_emb)
elif model_opt.model_type == "img":
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: OpenNMT/OpenNMT-py
Commit Name: bc1351d47d9fe83bc6c7830a8563ddb874953ed4
Time: 2019-01-09
Author: benzurdopeters@gmail.com
File Name: onmt/model_builder.py
Class Name:
Method Name: build_base_model
Project Name: OpenNMT/OpenNMT-py
Commit Name: 685126644ae540be72eb662527269a0395e2c9eb
Time: 2017-09-05
Author: bpeters@coli.uni-saarland.de
File Name: onmt/IO.py
Class Name:
Method Name: make_features
Project Name: OpenNMT/OpenNMT-py
Commit Name: bc1351d47d9fe83bc6c7830a8563ddb874953ed4
Time: 2019-01-09
Author: benzurdopeters@gmail.com
File Name: onmt/inputters/inputter.py
Class Name:
Method Name: load_fields_from_vocab