99432c0c5114d0889408ea97d9d01dd61b191e05,language/orqa/predict/orqa_eval.py,,main,#Any#,32

Before Change


            prediction=predicted_answer,
            is_regex=False)
        predictions_file.write(
            json.dumps(
                dict(
                    question=question,
                    prediction=predicted_answer,
                    predicted_context=six.ensure_text(
                        predictions["orig_block"], errors="ignore"),
                    correct=is_correct,
                    answer=answers)))
        predictions_file.write("\n")
        correct_count += int(is_correct)
        example_count += 1

After Change


      correct_count += int(is_correct)
      example_count += 1
      if FLAGS.print_prediction_samples and i & (i - 1) == 0:
        logging.info("[%d] "%s" -> "%s"", i, question, predicted_answer)

  logging.info("Accuracy: %.4f (%d/%d)", correct_count / float(example_count),
               correct_count, example_count)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 2

Instances


Project Name: google-research/language
Commit Name: 99432c0c5114d0889408ea97d9d01dd61b191e05
Time: 2020-08-14
Author: kentonl@google.com
File Name: language/orqa/predict/orqa_eval.py
Class Name:
Method Name: main


Project Name: zake7749/PTT-Chat-Generator
Commit Name: fe87da76b6b7e54e766ac238f4b5b46d2f578493
Time: 2016-10-20
Author: zake7749@gmail.com
File Name: filter.py
Class Name: ArticleFilter
Method Name: load_processed_corpus


Project Name: amygdala/code-snippets
Commit Name: df54abf808331353917568b26e3fbfa69c0e5cef
Time: 2020-08-04
Author: amy@infosleuth.net
File Name: ml/kubeflow-pipelines/bikes_weather/components/kubeflow-resources/bikesw_training/deploy_tuner.py
Class Name:
Method Name: main


Project Name: cmu-db/ottertune
Commit Name: 66ad361654ee5f82172b767685a3aa55dc9c0dcd
Time: 2020-04-03
Author: dvanaken@cs.cmu.edu
File Name: server/website/website/tasks/async_tasks.py
Class Name:
Method Name: configuration_recommendation