Close Icon

# Ensure you've downloaded the necessary NLTK data nltk.download('punkt')

# Tokenize the text tokens = word_tokenize(text) print(tokens)

# Using spaCy nlp = spacy.load("en_core_web_sm") doc = nlp(text)

import nltk from nltk.tokenize import word_tokenize import spacy

# Sample text (transcription of your video) text = "This is a sample text from a video."