code: def detect_spans(self, tokens):
          
          candidates = self._get_candidates(tokens)
          results = self._filter_candidates(tokens, candidates)
          return results
docs: Return (abbr_span, long_span) pair for each abbreviation definition.
  
          abbr_span and long_span are (int, int) spans defining token ranges.