The document discusses a novel approach to domain-based chunking in natural language processing using a grammar-based text generation mechanism to create a large annotated corpus without manual intervention. This method employs transformer and recurrent neural network models to classify input query tokens, achieving a high classification F1 score of 96.97%. The proposed system aims to facilitate efficient online targeting for advertising by accurately identifying relevant chunks in user input queries.