              for annot in annotations:
                  if annot:
                      if annot is heads or annot is sent_starts or annot is ent_iobs:
                          for i in range(len(words)):
                              if attrs.ndim == 1:
                                  attrs[i] = annot[i]
                              else:
                                  attrs[i, j] = annot[i]
 
</s> remove                             array[i, head_col] = ancestor_i - i
 </s> add                             array[i, head_col] = numpy.int32(ancestor_i - i).astype(numpy.uint64) </s> remove             values.append([vocab.strings.add(h) if h is not None else MISSING_DEP for h in value])
 </s> add             row = [vocab.strings.add(h) if h is not None else MISSING_DEP for h in value] </s> remove             values.append([to_ternary_int(v) for v in value])
 </s> add             row = [to_ternary_int(v) for v in value] </s> remove             values.append([h-i if h is not None else 0 for i, h in enumerate(value)])
 </s> add             row = [h-i if h is not None else 0 for i, h in enumerate(value)]
                        annot = numpy.array(annot, dtype=numpy.int32).astype(numpy.uint64)
              for annot in annotations:
                  if annot:
                      if annot is heads or annot is sent_starts or annot is ent_iobs:
                        annot = numpy.array(annot, dtype=numpy.int32).astype(numpy.uint64)
                          for i in range(len(words)):
                              if attrs.ndim == 1:
                                  attrs[i] = annot[i]
                              else:
                                  attrs[i, j] = annot[i]
keep keep add 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/tokens/doc.pyx