a84e1ef9f1398100dd73c49737f39ac42f797f02,official/transformer/compute_bleu.py,,,#,111

Before Change




if __name__ == "__main__":
  parser = argparse.ArgumentParser()
  parser.add_argument(
      "--translation", "-t", type=str, default=None, required=True,
      help="[default: %(default)s] File containing translated text.",
      metavar="<T>")
  parser.add_argument(
      "--reference", "-r", type=str, default=None, required=True,
      help="[default: %(default)s] File containing reference translation",
      metavar="<R>")
  parser.add_argument(
      "--bleu_variant", "-bv", type=str, choices=["uncased", "cased"],
      nargs="*", default=None,
      help="Specify one or more BLEU variants to calculate (both are "
           "calculated by default. Variants: \"cased\" or \"uncased\".",
      metavar="<BV>")

  FLAGS, unparsed = parser.parse_known_args()
  main(sys.argv)

After Change




if __name__ == "__main__":
  tf.logging.set_verbosity(tf.logging.INFO)
  define_compute_bleu_flags()
  FLAGS = flags.FLAGS
  absl_app.run(main)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 15

Instances


Project Name: tensorflow/models
Commit Name: a84e1ef9f1398100dd73c49737f39ac42f797f02
Time: 2018-05-11
Author: 31663267+k-w-w@users.noreply.github.com
File Name: official/transformer/compute_bleu.py
Class Name:
Method Name:


Project Name: tensorflow/models
Commit Name: a84e1ef9f1398100dd73c49737f39ac42f797f02
Time: 2018-05-11
Author: 31663267+k-w-w@users.noreply.github.com
File Name: official/transformer/compute_bleu.py
Class Name:
Method Name:


Project Name: tensorflow/models
Commit Name: a84e1ef9f1398100dd73c49737f39ac42f797f02
Time: 2018-05-11
Author: 31663267+k-w-w@users.noreply.github.com
File Name: official/transformer/data_download.py
Class Name:
Method Name:


Project Name: tensorflow/models
Commit Name: 023fc2b2ceadf8863396c6fdb04d755362c99de7
Time: 2018-05-24
Author: 36285763+yhliang2018@users.noreply.github.com
File Name: official/recommendation/data_download.py
Class Name:
Method Name: