f5766226bfcdb565f326deb73d4d42f0779504c6,nlgeval/pycocoevalcap/meteor/meteor.py,Meteor,_score,#Meteor#,65

Before Change


            score_line = " ||| ".join(("SCORE", " ||| ".join(reference_list), hypothesis_str))
            self.meteor_p.stdin.write("{}\n".format(score_line))
            self.meteor_p.stdin.flush()
            stats = self.meteor_p.stdout.readline().strip()
            eval_line = "EVAL ||| {}".format(stats)
            // EVAL ||| stats 
            self.meteor_p.stdin.write("{}\n".format(eval_line))
            self.meteor_p.stdin.flush()

After Change


            score_line = " ||| ".join(("SCORE", " ||| ".join(reference_list), hypothesis_str))
            self.meteor_p.stdin.write(enc("{}\n".format(score_line)))
            self.meteor_p.stdin.flush()
            stats = dec(self.meteor_p.stdout.readline()).strip()
            eval_line = "EVAL ||| {}".format(stats)
            // EVAL ||| stats 
            self.meteor_p.stdin.write(enc("{}\n".format(eval_line)))
            self.meteor_p.stdin.flush()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: Maluuba/nlg-eval
Commit Name: f5766226bfcdb565f326deb73d4d42f0779504c6
Time: 2018-07-09
Author: hannes.schulz@microsoft.com
File Name: nlgeval/pycocoevalcap/meteor/meteor.py
Class Name: Meteor
Method Name: _score