Implement the text learner node