Sentiment analyzer returns namedtuples

Fixes all failing doctests
Use generators in NaiveBayesAnalyzer
Make basic_extractor more memory-efficient