code: def check_agreement2(sentence):
      
      correct = False
  
      # see number of verb phrases
      pattern = r'<VERB>?<ADV>*<VERB>+'
      doc = textacy.Doc(sentence, lang='en_core_web_lg')
      vps = textacy.extract.pos_regex_matches(doc, pattern)
  
      #if len([x for x in vps]) < 2:
      if (METHOD == 'COMBINED' and len([x for x in vps]) < 2) or METHOD == 'RULE_BASED':
          print("Simple sentence, using rule based checker")
          return check_agreement(sentence)
      
      # Use ML on more complex sentences
      positive_prob = model.predict([text_to_vector(sentence)])[0][1]
      return positive_prob <= 0.61
docs: Returns False when subject and verb disagree (or probably disagree)