NLP - Sentiment Analysis Advanced
Identify the error in this code snippet for advanced sentiment analysis:
def analyze(text):
scores = {'pos': 0.6, 'neu': 0.3, 'neg': 0.1}
return max(scores, scores.get)
print(analyze('Mixed feelings'))