eed0d42f7ae50bc2238e2494cd576f46eca34f13,tests/service/predictors/bidaf_test.py,TestBidafPredictor,test_uses_named_inputs,#TestBidafPredictor#,9

Before Change


                "passage": "One time I was writing a unit test, and it succeeded on the first attempt."
        }

        bidaf_config = Params.from_file("tests/fixtures/bidaf/experiment.json")
        model = BidafPredictor.from_config(bidaf_config)

        result = model.predict_json(inputs)

        assert "span_start_probs" in result

After Change


                "passage": "One time I was writing a unit test, and it succeeded on the first attempt."
        }

        archive = load_archive("tests/fixtures/bidaf/serialization/model.tar.gz")
        predictor = Predictor.from_archive(archive)

        result = predictor.predict_json(inputs)

        assert "span_start_probs" in result
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: allenai/allennlp
Commit Name: eed0d42f7ae50bc2238e2494cd576f46eca34f13
Time: 2017-08-22
Author: joelgrus@gmail.com
File Name: tests/service/predictors/bidaf_test.py
Class Name: TestBidafPredictor
Method Name: test_uses_named_inputs


Project Name: allenai/allennlp
Commit Name: eed0d42f7ae50bc2238e2494cd576f46eca34f13
Time: 2017-08-22
Author: joelgrus@gmail.com
File Name: tests/service/predictors/decomposable_attention_test.py
Class Name: TestDecomposableAttentionPredictor
Method Name: test_uses_named_inputs


Project Name: allenai/allennlp
Commit Name: eed0d42f7ae50bc2238e2494cd576f46eca34f13
Time: 2017-08-22
Author: joelgrus@gmail.com
File Name: tests/service/predictors/srl_test.py
Class Name: TestSrlPredictor
Method Name: test_cpu_vs_gpu