futoContextBuckets function

List<int> futoContextBuckets(
  1. String word
)

The two hashed-embedding rows for word, each in 0..32767.

Implementation

List<int> futoContextBuckets(String word) {
  final hash = futoContextHash(word);
  return [
    for (final multiplier in _bucketMultipliers)
      (((hash * multiplier) & _mask) >> 49).toInt(),
  ];
}