      )
      spangroup = spancat._make_span_group_singlelabel(
          doc, indices, scores, allow_overlap
      )
      assert len(spangroup) == nr_results
      if threshold > 0.4:
          if allow_overlap:
              assert spangroup[0].text == "London"
              assert spangroup[0].label_ == "City"
              assert spangroup[1].text == "Greater London"
 
</s> remove 
 </s> add             assert spangroup.attrs["scores"][1] == 0.9
            assert_almost_equal(0.9, spangroup.attrs["scores"][1], 5)
      )
      spangroup = spancat._make_span_group_singlelabel(
          doc, indices, scores, allow_overlap
      )

      if threshold > 0.4:
          if allow_overlap:
              assert spangroup[0].text == "London"
              assert spangroup[0].label_ == "City"
              assert spangroup[1].text == "Greater London"
keep keep keep keep replace keep keep keep keep keep
 Fix spancat-singlelabel score (#12469)

* debug argmax sort and add span scores

* add missing tests for spanscores 
spacy/tests/pipeline/test_spancat.py