      doc_from_array.from_array(["HEAD"], arr)
  
      # head before start
      arr = doc.to_array(["HEAD"])
      arr[0] = -1
      doc_from_array = Doc(en_vocab, words=words)
      with pytest.raises(ValueError):
          doc_from_array.from_array(["HEAD"], arr)
  
      # head after end
 
</s> remove     arr[0] = 5
 </s> add     arr[0] = numpy.int32(5).astype(numpy.uint64) </s> remove                         array[i, head_col] = new_root - i
 </s> add                         array[i, head_col] = numpy.int32(new_root - i).astype(numpy.uint64) </s> remove                             array[i, head_col] = ancestor_i - i
 </s> add                             array[i, head_col] = numpy.int32(ancestor_i - i).astype(numpy.uint64)
    arr[0] = numpy.int32(-1).astype(numpy.uint64)
      doc_from_array.from_array(["HEAD"], arr)
  
      # head before start
      arr = doc.to_array(["HEAD"])
    arr[0] = numpy.int32(-1).astype(numpy.uint64)
      doc_from_array = Doc(en_vocab, words=words)
      with pytest.raises(ValueError):
          doc_from_array.from_array(["HEAD"], arr)
  
      # head after end
keep keep keep keep replace keep keep keep keep keep
 Cast to uint64 for all array-based doc representations (#11933)

* Convert all individual values explicitly to uint64 for array-based doc representations

* Temporarily test with latest numpy v1.24.0rc

* Remove unnecessary conversion from attr_t

* Reduce number of individual casts

* Convert specifically from int32 to uint64

* Revert "Temporarily test with latest numpy v1.24.0rc"

This reverts commit eb0e3c5006515b9a7ff52bae59484c909b8a3f65.

* Also use int32 in tests 
spacy/tests/doc/test_array.py