Add bleurt
{'login': 'yjernite', 'id': 10469459, 'node_id': 'MDQ6VXNlcjEwNDY5NDU5', 'avatar_url': 'https://avatars.githubusercontent.com/u/10469459?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/yjernite', 'html_url': 'https://github.com/yjernite', 'followers_url': 'https://api.github.com/users/yjernite/followers', 'following_url': 'https://api.github.com/users/yjernite/following{/other_user}', 'gists_url': 'https://api.github.com/users/yjernite/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/yjernite/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/yjernite/subscriptions', 'organizations_url': 'https://api.github.com/users/yjernite/orgs', 'repos_url': 'https://api.github.com/users/yjernite/repos', 'events_url': 'https://api.github.com/users/yjernite/events{/privacy}', 'received_events_url': 'https://api.github.com/users/yjernite/received_events', 'type': 'User', 'site_admin': False}
[]
[]
['Sorry one nit: Could we use named arguments for the call to BLEURT?\r\n\r\ni.e. \r\n        scores = self.scorer.score(references=references, candidates=predictions)\r\n\r\n(i.e. so it is less bug prone)\r\n'
 "Following up on Ankur's comment---we are going to drop support for\npositional (not named) arguments in the future releases because it seems to\ncause bugs and confusion. I hope it doesn't create too much of a mess.\n\nLe jeu. 30 juil. 2020 à 10:44, ankparikh <notifications@github.com> a\nécrit :\n\n> Sorry one nit: Could we use named arguments for the call to BLEURT?\n>\n> i.e.\n> scores = self.scorer.score(references=references, candidates=predictions)\n>\n> (i.e. so it is less bug prone)\n>\n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/huggingface/nlp/pull/455#issuecomment-666414514>, or\n> unsubscribe\n> <https://github.com/notifications/unsubscribe-auth/ABTMRNGAN2PMECS5K4DIHJDR6GBMLANCNFSM4PL323FA>\n> .\n>\n"
 "> Following up on Ankur's comment---we are going to drop support for positional (not named) arguments in the future releases because it seems to cause bugs and confusion. I hope it doesn't create too much of a mess. Le jeu. 30 juil. 2020 à 10:44, ankparikh <notifications@github.com> a écrit :\r\n> […](#)\r\n> Sorry one nit: Could we use named arguments for the call to BLEURT? i.e. scores = self.scorer.score(references=references, candidates=predictions) (i.e. so it is less bug prone) — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub <[#455 (comment)](https://github.com/huggingface/nlp/pull/455#issuecomment-666414514)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABTMRNGAN2PMECS5K4DIHJDR6GBMLANCNFSM4PL323FA> .\r\n\r\nChanged @ankparikh @tsellam, thanks for taking a look!"
 "We should avoid positional arguments in metrics on our side as well. It's a dangerous source of errors indeed."]
{'url': 'https://api.github.com/repos/huggingface/datasets/pulls/455', 'html_url': 'https://github.com/huggingface/datasets/pull/455', 'diff_url': 'https://github.com/huggingface/datasets/pull/455.diff', 'patch_url': 'https://github.com/huggingface/datasets/pull/455.patch', 'merged_at': datetime.datetime(2020, 7, 31, 13, 56, 14)}
This PR adds the BLEURT metric to the library.

The BLEURT `Metric` downloads a TF checkpoint corresponding to its `config_name` at creation (in the `_info` function). Default is set to `bleurt-base-128`.

Note that the default in the original package is `bleurt-tiny-128`, but they throw a warning and recommend using `bleurt-base-128` instead. I think it's safer to have our users have a functioning metric when they call the default behavior, we'll address discrepancies in the issues/discussions if it comes up.

In addition to the BLEURT file, `load.py` was changed so we can ask users to pip install the required packages from git when they have a `setup.py` but are not on PyPL

cc @ankparikh @tsellam
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/455/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}