              attrs.append(key)
              values.append([vocab.strings.add(h) if h is not None else MISSING_DEP for h in value])
          elif key == "SENT_START":
              attrs.append(key)
              values.append([to_ternary_int(v) for v in value])
          elif key == "MORPH":
              attrs.append(key)
              values.append([vocab.morphology.add(v) for v in value])
          else:
              attrs.append(key)
 
</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([vocab.morphology.add(v) for v in value])
 </s> add             row = [vocab.morphology.add(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)] </s> remove             values.append([vocab.strings.add(v) for v in value])
    array = numpy.asarray(values, dtype="uint64")
 </s> add             row = [vocab.strings.add(v) for v in value]
        values.append([numpy.array(v, dtype=numpy.int32).astype(numpy.uint64) if v < 0 else v for v in row])
    array = numpy.array(values, dtype=numpy.uint64) </s> remove             pass
 </s> add             continue
            row = [to_ternary_int(v) for v in value]
              attrs.append(key)
              values.append([vocab.strings.add(h) if h is not None else MISSING_DEP for h in value])
          elif key == "SENT_START":
              attrs.append(key)
            row = [to_ternary_int(v) for v in value]
          elif key == "MORPH":
              attrs.append(key)
              values.append([vocab.morphology.add(v) for v in value])
          else:
              attrs.append(key)
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/training/example.pyx