text batching