code: def _find_and_replace_digit_spans(line):
      r"""
      only consider words start with number, contains '.', characters.
  
          If ends with space, will be processed
  
          If ends with Chinese character, will be processed
  
          If ends with or contains english char, not handled.
  
      floats are replaced by <DEC>
  
      otherwise unkdgt
      """
      new_line = ""
      pattern = r"\d[\d\\.﹒·]*(?=[\u4e00-\u9fff  ，％%,。！<－“])"
      prev_end = 0
      for match in re.finditer(pattern, line):
          start, end = match.span()
          span = line[start:end]
          new_line += line[prev_end:start] + _digit_span_to_special_tag(
              span
          )
          prev_end = end
      new_line += line[prev_end:]
      return new_line
  
file_path: fastNLP/fastNLP/io/pipe/cws.py
imports: import re
  from itertools import chain
  from .pipe import Pipe
  from .utils import _indexize
  from fastNLP.io.data_bundle import DataBundle
  from fastNLP.io.loader import CWSLoader
label_desc: Use image node_id 6 for calling a global function with example usage: _find_and_replace_digit_spans(line) and returns: new_line