          if gold_train_data["ws_ents"]:
              msg.fail(f"{gold_train_data['ws_ents']} invalid whitespace entity spans")
              has_ws_ents_error = True
  
          if gold_train_data["punct_ents"]:
              msg.warn(f"{gold_train_data['punct_ents']} entity span(s) with punctuation")
              has_punct_ents_warning = True
  
          for label in labels:
              if label_counts[label] <= NEW_LABEL_THRESHOLD:
                  msg.warn(
                      f"Low number of examples for label '{label}' ({label_counts[label]})"
                  )
 
</s> remove         if not has_punct_ents_warning:
            msg.good("No entities consisting of or starting/ending with punctuation")
 </s> add  </s> remove                 if label.startswith(("B-", "U-", "L-")) and doc[i].text in [
                    ".",
                    "'",
                    "!",
                    "?",
                    ",",
                ]:
                    # punctuation entity: could be replaced by whitespace when training with noise,
                    # so add a warning to alert the user to this unexpected side effect.
                    data["punct_ents"] += 1
 </s> add  </s> remove                 "with punctuation can not be trained with a noise level > 0."
 </s> add                 "with whitespace characters are considered invalid." </s> remove             msg.text(
                "As of spaCy v2.1.0, entity spans consisting of or starting/ending "
                "with whitespace characters are considered invalid."
            )

        if has_punct_ents_warning:
 </s> add  </s> remove         has_punct_ents_warning = False
 </s> add 
          if gold_train_data["ws_ents"]:
              msg.fail(f"{gold_train_data['ws_ents']} invalid whitespace entity spans")
              has_ws_ents_error = True
  




          for label in labels:
              if label_counts[label] <= NEW_LABEL_THRESHOLD:
                  msg.warn(
                      f"Low number of examples for label '{label}' ({label_counts[label]})"
                  )
keep keep keep keep replace replace replace replace keep keep keep keep keep
 Remove some old version refs in the docs (#9448)

* Remove some old version refs in the docs

* Remove warning

* Update spacy/matcher/matcher.pyx

* Remove all references to the punctuation warning

Co-authored-by: Sofie Van Landeghem <svlandeg@users.noreply.github.com> 
spacy/cli/debug_data.py