Classification of the imdb dataset from txt format using R