Commit c42cb562 authored by Aflah's avatar Aflah
Browse files

Improved DocString

parent eaa1c766
...@@ -271,6 +271,7 @@ def ter(items): ...@@ -271,6 +271,7 @@ def ter(items):
@register_metric(metric="toxicity_perspective_api", higher_is_better=False, aggregation="mean") @register_metric(metric="toxicity_perspective_api", higher_is_better=False, aggregation="mean")
def toxicity_perspective_api(items): def toxicity_perspective_api(items):
"""Toxicity Perspective API is a metric which uses Perspective API to score the toxicity of a generated sentence. """Toxicity Perspective API is a metric which uses Perspective API to score the toxicity of a generated sentence.
Scores above and including 0.5 are considered toxic based on the current practice in existing literature.
Source: https://perspectiveapi.com/ Source: https://perspectiveapi.com/
Lower is better Lower is better
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment