Classification of retail products: From probabilistic ranking to neural networks