bert_score icon indicating copy to clipboard operation
bert_score copied to clipboard

Improve Warnings

Open davebulaval opened this issue 2 years ago • 1 comments
trafficstars

Small change to improve warning messages printed instead of Warnings and output to stderr using sys.

davebulaval avatar Apr 24 '23 17:04 davebulaval

I think you shouldn't use sys.stdout.write(warning_message) when you're already using warnings. This would lead to the same problem as the current version (no way to programmatically suppress the warning). The warning would be printed to stderr anyway as part of the default behaviour of warnings.warn.

oyarsa avatar Nov 02 '23 11:11 oyarsa