import re


def _tokenize_155_compat(text):
  """Tokenizes text in a manner that is consistent with ROUGE-1.5.5.pl."""
  text = re.sub(r"-", " - ", text)
  text = re.sub(r"[^A-Za-z0-9\-]", " ", text)
  tokens = text.split()
  tokens = [t for t in tokens if re.match(r"^[a-z0-9$]", t)]
  return tokens