TopicDetectionResult: {
    text: string;
    labels?: {
        label: string;
        relevance: number;
    }[];
    timestamp?: Timestamp;
}

The result of the topic detection model

Type declaration

  • text: string

    The text in the transcript in which a detected topic occurs

  • Optionallabels?: {
        label: string;
        relevance: number;
    }[]
  • Optionaltimestamp?: Timestamp
{
"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": [
{
"relevance": 0.988274097442627,
"label": "Home&Garden>IndoorEnvironmentalQuality"
},
{
"relevance": 0.5821335911750793,
"label": "NewsAndPolitics>Weather"
},
{
"relevance": 0.0042327106930315495,
"label": "MedicalHealth>DiseasesAndConditions>LungAndRespiratoryHealth"
},
{
"relevance": 0.0033971222583204508,
"label": "NewsAndPolitics>Disasters"
},
{
"relevance": 0.002469958271831274,
"label": "BusinessAndFinance>Business>GreenSolutions"
},
{
"relevance": 0.0014376690378412604,
"label": "MedicalHealth>DiseasesAndConditions>Cancer"
},
{
"relevance": 0.0014294233405962586,
"label": "Science>Environment"
},
{
"relevance": 0.001234519761055708,
"label": "Travel>TravelLocations>PolarTravel"
},
{
"relevance": 0.0010231725173071027,
"label": "MedicalHealth>DiseasesAndConditions>ColdAndFlu"
},
{
"relevance": 0.0007445293595083058,
"label": "BusinessAndFinance>Industries>PowerAndEnergyIndustry"
}
],
"timestamp": {
"start": 250,
"end": 28840
}
}