add method for setting token text analyzer