Skip to content

Search for similar movies based on their wikipedia description

Notifications You must be signed in to change notification settings

pixelneo/movie-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

movie-database

A project for course Language Technologies in Practice.

Usage

See README.md in src/ dir.

Data sources

An (optimistic) plan

  • Do topic modelling on movie plots, using multiple methods
    • LDA
    • Doc2Vec
    • LSA
  • (abandoned): use TF-IDF or something similar to find the plot of the movie, then use methods from topic modelling to find similar movies.

TODOs

  • Remove proper names (eg. john, paul, george, ...)

  • How to evaluate? 35k plots is not a lot and ~2k test set is very small.

Results

  • LDA + Clustering does not work as expected. There is a big difference between sizes of clusters. And after 'human evaluation' the movies usually are not clustered as expected.
  • LDA + similarities module from gensim works better than clustering
  • All methods are generally able to find related movies (sequels, remakes, related movies) quite well. Doc2Vec performs the best in this respect.
  • On the other hand, I did not achieve what I expected, that is to find "similar" not "related" movies. I suspect better results might be obtained if the modelling is done on subtitles.

Example outputs

q is the query, v are 5 most similar movies

LDA

(These are with ommited query from the search results)

q: The Lord of the Rings: The Fellowship of the Ring 2001
v: The Lord of the Rings 1978, The Lord of the Rings: The Return of the King 2003, The Return of the King 1980, The Lord of the Rings: The Two Towers 2002, 23 2016,

q: Casino 1995
v: To Live and Die in L.A. 1985, Goodfellas 1990, Midnight Run 1988, Black Heat 1976, Jackie Brown 1997

Doc2Vec

q: Goodfellas 1990
v: Goodfellas 1990, Street Bandits 1951, Public Enemies 1996, Legend 2015, Fog Over Frisco 1934, Casino 1995

q: Goldfinger 1964
v: Goldfinger 1964, The World Is Not Enough 1999, Casino Royale 2006, Dr. No 1962, A View to a Kill 1985, Skyfall 2012,

LSA

q: Trainspotting 1996
v: T2 Trainspotting 2017, Super Fly 1972, The Most Fun You Can Have Dying 2012, Fifty Pills 2006, Requiem for a Dream 2000,

q: Terminator 2: Judgment Day 1991
v: Victor Frankenstein 2015, Vice 2015, Bright 2017, The Numbers Station 2013, Terminator 3: Rise of the Machines 2003

About

Search for similar movies based on their wikipedia description

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published