Automatic classification of protein functions from the literature