Understanding Perplexity Metrics in Natural Language AI