Collect
Overview, genres, keywords, top cast, and director are merged into one movie record.
The method behind the match
Every result starts as text. CineMatch turns movie language into vectors, compares their direction, and returns the closest stories in the catalog.
The pipeline
Overview, genres, keywords, top cast, and director are merged into one movie record.
Text is lowercased, tokenized, stripped of stopwords and punctuation, then stemmed.
TF-IDF weighs informative words and bigrams so rare signals matter more than filler.
Cosine similarity scores the angle between vectors and ranks the nearest neighbors.
The intuition
Imagine every movie as a point in a very large space. A film about space, robots, and emotional survival lands near other films using similar language. The closer the direction, the stronger the recommendation.
Why TF-IDF?
“Movie” appears everywhere, so it should not decide a match. TF-IDF downweights common words and boosts distinctive terms such as “wormhole”, “samurai”, or “heist”.
For your viva
Content-based. CineMatch recommends from movie metadata, not from other users’ ratings.
Cached. The vectorizer and similarity matrix are saved with joblib, so startup stays fast.
Flexible. The same model accepts a title or a new free-text description.