code: def compareTaggers(model1, model2, string_list, module_name):
      
      module = __import__(module_name)
  
      tagger1 = pycrfsuite.Tagger()
      tagger1.open(module_name+'/'+model1)
      tagger2 = pycrfsuite.Tagger()
      tagger2.open(module_name+'/'+model2)
  
      count_discrepancies = 0
  
      for string in string_list:
          tokens = module.tokenize(string)
          if tokens:
              features = module.tokens2features(tokens)
  
              tags1 = tagger1.tag(features)
              tags2 = tagger2.tag(features)
  
              if tags1 != tags2:
                  count_discrepancies += 1
                  print('\n')
                  print("%s. %s" %(count_discrepancies, string))
                  
                  print('-'*75)
                  print_spaced('token', model1, model2)
                  print('-'*75)
                  for token in zip(tokens, tags1, tags2):
                      print_spaced(token[0], token[1], token[2])
      print("\n\n%s of %s strings were labeled differently"%(count_discrepancies, len(string_list)))
docs: Compare two models. Given a list of strings, prints out tokens & tags
      whenever the two taggers parse a string differently. This is for spot-checking models
      :param tagger1: a .crfsuite filename
      :param tagger2: another .crfsuite filename
      :param string_list: a list of strings to be checked
      :param module_name: name of a parser module