Skip to content

Instantly share code, notes, and snippets.

@gmyrianthous
Created February 8, 2022 15:33
Show Gist options
  • Save gmyrianthous/81aaa52edb933abb251e17e380a2ae0a to your computer and use it in GitHub Desktop.
Save gmyrianthous/81aaa52edb933abb251e17e380a2ae0a to your computer and use it in GitHub Desktop.
Topic Detection with Python - Output
{
...
"id": "audio-transcription-id",
"status": "completed",
"text": "Ted Talks are recorded live at Ted Conference..."
"iab_categories_result": {
"status": "success",
"results": [
{
"text": "Ted Talks are recorded live at Ted Conference...",
"labels": [
{
"relevance": 0.02298230677843094,
"label": "Technology&Computing>Computing>ComputerSoftwareAndApplications>WebConferencing"
},
{
"relevance": 0.00561910355463624,
"label": "Education>OnlineEducation"
},
{
"relevance": 0.00465833256021142,
"label": "MusicAndAudio>TalkRadio"
},
{
"relevance": 0.002487020567059517,
"label": "Hobbies&Interests>ContentProduction"
},
{
"relevance": 0.0012438222765922546,
"label": "BusinessAndFinance>Business>ExecutiveLeadership&Management"
},
{
"relevance": 0.0010610689641907811,
"label": "Technology&Computing>Computing>Internet>SocialNetworking"
},
{
"relevance": 0.0008706427761353552,
"label": "Careers>RemoteWorking"
},
{
"relevance": 0.0005944414297118783,
"label": "Religion&Spirituality>Spirituality"
},
{
"relevance": 0.00039072768413461745,
"label": "Television>RealityTV"
},
{
"relevance": 0.00036419558455236256,
"label": "MusicAndAudio>TalkRadio>EducationalRadio"
}
],
"timestamp": {
"start": 8630,
"end": 32990
}
},
...
],
"summary": {
"MedicalHealth>DiseasesAndConditions>BrainAndNervousSystemDisorders": 1.0,
"FamilyAndRelationships>Dating": 0.7614801526069641,
"Shopping>LotteriesAndScratchcards": 0.6330153346061707,
"Hobbies&Interests>ArtsAndCrafts>Photography": 0.6305723786354065,
"Style&Fashion>Beauty": 0.5269057750701904,
"Education>EducationalAssessment": 0.49798518419265747,
"BooksAndLiterature>ArtAndPhotographyBooks": 0.45763808488845825,
"FamilyAndRelationships>Bereavement": 0.45646440982818604,
"FineArt>FineArtPhotography": 0.3921416699886322,
"NewsAndPolitics>Politics>Elections": 0.3911418318748474,
"Technology&Computing>ConsumerElectronics>CamerasAndCamcorders": 0.37802764773368835,
"Technology&Computing>ArtificialIntelligence": 0.3659703731536865,
"PopCulture>CelebrityScandal": 0.30767935514450073,
"FamilyAndRelationships": 0.30298155546188354,
"Education>EducationalAssessment>StandardizedTesting": 0.2812648415565491,
"Sports>Bodybuilding": 0.2398379147052765,
"Education>HomeworkAndStudy": 0.20159155130386353,
"Style&Fashion>BodyArt": 0.19066567718982697,
"NewsAndPolitics>Politics>PoliticalIssues": 0.18915779888629913,
"FamilyAndRelationships>SingleLife": 0.15354971587657928
}
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment