1. 学习
  2. /
  3. 课程
  4. /
  5. Spoken Language Processing in Python

Connected

练习

Sentiment analysis on formatted text

In this exercise, you'll calculate the sentiment on the customer channel of call_2.wav (file).

You've split the customer channel and saved it to call_2_channel_2.wav (file).

But from your experience with sentiment analysis, you know it can change sentence to sentence.

To calculate it sentence to sentence, you split the split using NLTK's sent_tokenize() module.

But transcribe_audio() doesn't return sentences. To try sentiment anaylsis with sentences, you've tried a paid API service to get call_2_channel_2_paid_api_text which has sentences.

说明 1 / 共 3 个

undefined XP
  • 1
    • Transcribe the audio of call_2_channel_2.wav and find the sentiment scores.
  • 2
    • Split call_2_channel_2_text into sentences and find the sentiment score of each sentence.
  • 3
    • Split call_2_channel_2_paid_api_text into sentences and score the sentiment of each.