1. सीखें
  2. /
  3. पाठ्यक्रम
  4. /
  5. Sentiment Analysis in Python

Connected

अभ्यास

Detect language of a list of strings

Now you will detect the language of each item in a list. A list called sentences has been created for you and it contains 3 sentences, each in a different language. They have been randomly extracted from the product reviews dataset.

निर्देश

100 XP
  • Iterate over the sentences in the list.
  • Detect the language of each sentence and append the detected language to the empty list languages.