f3acc0e85cc78b6ad3c0e9568dccfe4a778c6354,dvalib/analyzer.py,OpenImagesAnnotator,apply,#OpenImagesAnnotator#Any#,91

Before Change


        predictions_eval = np.squeeze(self.session.run(self.predictions, {self.input_image: img_data}))
        results = {self.label_dict.get(self.labelmap[idx], "unknown"):predictions_eval[idx]
                   for idx in predictions_eval.argsort()[-self.top_n:][::-1]}
        return results


class CRNNAnnotator(BaseAnnotator):

After Change


        predictions_eval = np.squeeze(self.session.run(self.predictions, {self.input_image: img_data}))
        results = {self.label_dict.get(self.labelmap[idx], "unknown"):predictions_eval[idx]
                   for idx in predictions_eval.argsort()[-self.top_n:][::-1]}
        text = " ".join([t for t,v in results.iteritems() if v > 0.1])
        metadata = {t:100.0*v for t,v in results.iteritems() if v > 0.1}
        return self.object_name,text,metadata


class CRNNAnnotator(BaseAnnotator):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: AKSHAYUBHAT/DeepVideoAnalytics
Commit Name: f3acc0e85cc78b6ad3c0e9568dccfe4a778c6354
Time: 2017-08-22
Author: akshayubhat@gmail.com
File Name: dvalib/analyzer.py
Class Name: OpenImagesAnnotator
Method Name: apply


Project Name: dmlc/gluon-nlp
Commit Name: 8859c20eb97e803f66487c74615350b955efab4a
Time: 2018-06-30
Author: leonard@lausen.nl
File Name: gluonnlp/embedding/evaluation.py
Class Name:
Method Name: list_evaluation_functions


Project Name: NTMC-Community/MatchZoo
Commit Name: 8d4dffd879eec26ad8098039b1aa84d149cd3799
Time: 2019-07-23
Author: kingbolanda@live.com
File Name: matchzoo/preprocessors/units/punc_removal.py
Class Name: PuncRemoval
Method Name: transform