Automatic classification of document resources based on naive Bayesian classification algorithm