Integration of global and local information for text classification