Type Alias ContentSafetyLabelResult

ContentSafetyLabelResult: {
    labels: ContentSafetyLabel[];
    sentences_idx_end: number;
    sentences_idx_start: number;
    text: string;
    timestamp: Timestamp;
}

Type declaration

  • labels: ContentSafetyLabel[]

    An array of safety labels, one per sensitive topic that was detected in the section

  • sentences_idx_end: number

    The sentence index at which the section ends

  • sentences_idx_start: number

    The sentence index at which the section begins

  • text: string

    The transcript of the section flagged by the Content Moderation model

  • timestamp: Timestamp

    Timestamp information for the section

{
"text": "Smoke from hundreds of wildfires in Canada is triggering air quality alerts throughout the US. Skylines from Maine to Maryland to Minnesota are gray and smoggy. And in some places, the air quality warnings include the warning to stay inside. We wanted to better understand what's happening here and why, so we called Peter de Carlo, an associate professor in the Department of Environmental Health and Engineering at Johns Hopkins University Varsity. Good morning, professor. Good morning.",
"labels": [
{
"label": "disasters",
"confidence": 0.8142836093902588,
"severity": 0.4093044400215149
}
],
"sentences_idx_start": 0,
"sentences_idx_end": 5,
"timestamp": {
"start": 250,
"end": 28840
}
}