Natural Language Processing master course exercise