Refactored NLTK class