8f57b8c33677f57131d18cdedd9b85100dff5da8,tests/models/sniff_test.py,SniffTest,test_coreference_resolution,#SniffTest#,107

Before Change


        assert result["label_probs"][2] > 0.7  // neutral

    def test_coreference_resolution(self):
        predictor = Predictor.from_archive(load_archive(DEFAULT_MODELS["coreference-resolution"]),
                                           "coreference-resolution")
        document = "We "re not going to skimp on quality , but we are very focused to make next year . The only problem is that some of the fabrics are wearing out - since I was a newbie I skimped on some of the fabric and the poor quality ones are developing holes . For some , an awareness of this exit strategy permeates the enterprise , allowing them to skimp on the niceties they would more or less have to extend toward a person they were likely to meet again ."

        result = predictor.predict_json({"document": document})
        assert result["clusters"] == [[[0, 0], [10, 10]],

After Change


        assert result["label_probs"][2] > 0.7  // neutral

    def test_coreference_resolution(self):
        predictor = DEFAULT_MODELS["coreference-resolution"].predictor()

        document = "We "re not going to skimp on quality , but we are very focused to make next year . The only problem is that some of the fabrics are wearing out - since I was a newbie I skimped on some of the fabric and the poor quality ones are developing holes . For some , an awareness of this exit strategy permeates the enterprise , allowing them to skimp on the niceties they would more or less have to extend toward a person they were likely to meet again ."

        result = predictor.predict_json({"document": document})
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: allenai/allennlp
Commit Name: 8f57b8c33677f57131d18cdedd9b85100dff5da8
Time: 2017-11-16
Author: joelgrus@gmail.com
File Name: tests/models/sniff_test.py
Class Name: SniffTest
Method Name: test_coreference_resolution


Project Name: allenai/allennlp
Commit Name: 8f57b8c33677f57131d18cdedd9b85100dff5da8
Time: 2017-11-16
Author: joelgrus@gmail.com
File Name: tests/models/sniff_test.py
Class Name: SniffTest
Method Name: test_textual_entailment


Project Name: allenai/allennlp
Commit Name: 8f57b8c33677f57131d18cdedd9b85100dff5da8
Time: 2017-11-16
Author: joelgrus@gmail.com
File Name: tests/models/sniff_test.py
Class Name: SniffTest
Method Name: test_machine_comprehension


Project Name: allenai/allennlp
Commit Name: 8f57b8c33677f57131d18cdedd9b85100dff5da8
Time: 2017-11-16
Author: joelgrus@gmail.com
File Name: tests/models/sniff_test.py
Class Name: SniffTest
Method Name: test_semantic_role_labeling