Python में sliding window से ट्रांसक्रिप्ट में हाइलाइट क्लिप्स कैसे ढूँढें
अगर ट्रांसक्रिप्ट में हर शब्द का टाइमस्टैम्प है, तो लंबी रिकॉर्डिंग में छोटी क्लिप्स के कैंडिडेट ढूँढने के लिए किसी मॉडल की ज़रूरत नहीं है। तय लंबाई की एक विंडो हर शब्द से शुरू करें और उसे इस हिसाब से स्कोर दें कि उसमें कितने शब्द आते हैं। इससे वे हिस्से मिल जाते हैं जहाँ सबसे ज़्यादा बात कही गई है। osFoundry डेस्कटॉप ऐप का वीडियो एडिटर ठीक यही चीज़ अपने Suggest clips बटन में देता है, Rust में (…
This article explains how to find the best clips in a transcript using a sliding window approach in Python. The method involves creating candidates by starting a window at the beginning of each word and scoring them based on the number of words they contain. The algorithm then selects the best candidates based on their scores, which can be adjusted by changing the window size.
The example provided uses an interview with astronaut Christina Koch and her Whisper transcript, which contains 306.97 seconds of audio and 1,007 words.
Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.