bd12252818e4376a52a28b8defa19ac090d927dd,tests/service/predictors/bidaf_test.py,TestBidafPredictor,test_uses_named_inputs,#TestBidafPredictor#,11

Before Change


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

        with open("tests/fixtures/bidaf/experiment.json") as f:
            config = json.loads(f.read())
            bidaf_config = Params(replace_none(config))

        model = BidafPredictor.from_config(bidaf_config)

        result = model.predict_json(inputs)

After 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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 12

Instances


Project Name: allenai/allennlp
Commit Name: bd12252818e4376a52a28b8defa19ac090d927dd
Time: 2017-08-18
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: bd12252818e4376a52a28b8defa19ac090d927dd
Time: 2017-08-18
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: bd12252818e4376a52a28b8defa19ac090d927dd
Time: 2017-08-18
Author: joelgrus@gmail.com
File Name: tests/service/predictors/srl_test.py
Class Name: TestSrlPredictor
Method Name: test_uses_named_inputs