An algorithm for the prediction of annotations on Pubmed