add logging to the lemmatizer for debugging