nltk.tag.CRFTagger.tag_sents

CRFTagger.tag_sents(sents)[source]
Tag a list of sentences. NB before using this function, user should specify the mode_file either by
  • Train a new model using ``train’’ function
  • Use the pre-trained model which is set via ``set_model_file’’ function

:params sentences : list of sentences needed to tag. :type sentences : list(list(str)) :return : list of tagged sentences. :rtype : list (list (tuple(str,str)))