New API for classification of paragraph