43fc89ee59944dca0de01ca5ab2843c9926323d6,allennlp/predictors/predictor.py,Predictor,predict_batch_json,#Predictor#Any#,59

Before Change



    def predict_batch_json(self, inputs: List[JsonDict]) -> List[JsonDict]:
        instances = self._batch_json_to_instances(inputs)
        outputs = self._model.forward_on_instances(instances)
        return sanitize(outputs)

    def _batch_json_to_instances(self, json_dicts: List[JsonDict]) -> List[Instance]:
        
        Converts a list of JSON objects into a list of :class:`~allennlp.data.instance.Instance`s.

After Change



    def predict_batch_json(self, inputs: List[JsonDict]) -> List[JsonDict]:
        instances = self._batch_json_to_instances(inputs)
        return self.predict_batch_instance(instances)

    def predict_batch_instance(self, instances: List[Instance]) -> List[JsonDict]:
        outputs = self._model.forward_on_instances(instances)
        return sanitize(outputs)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: allenai/allennlp
Commit Name: 43fc89ee59944dca0de01ca5ab2843c9926323d6
Time: 2018-06-28
Author: markn@allenai.org
File Name: allennlp/predictors/predictor.py
Class Name: Predictor
Method Name: predict_batch_json


Project Name: allenai/allennlp
Commit Name: 43fc89ee59944dca0de01ca5ab2843c9926323d6
Time: 2018-06-28
Author: markn@allenai.org
File Name: allennlp/predictors/predictor.py
Class Name: Predictor
Method Name: predict_json


Project Name: allenai/allennlp
Commit Name: af902a3f2776b31d36d089c8c49d8f024da1bb07
Time: 2018-11-18
Author: alon.eirew@intel.com
File Name: allennlp/predictors/semantic_role_labeler.py
Class Name: SemanticRoleLabelerPredictor
Method Name: predict_json