Crates.io | hamming-bow |
lib.rs | hamming-bow |
version | 0.1.0 |
source | src |
created_at | 2021-07-21 03:16:36.096462 |
updated_at | 2021-07-21 03:16:36.096462 |
description | Produces binary term frequency bit arrays for hamming-space bag of words |
homepage | |
repository | https://github.com/rust-cv/hamming-bow |
max_upload_size | |
id | 425361 |
size | 14,176 |
Produces binary term frequency bit arrays for hamming-space bag of words
This works by using hamming-dict
to create codewords in the hamming space that are as maximally spaced out as possible.
For each input key, its nearest neighbor is found in the dictionary and the corresponding bit is set in the bag. If the number of bits set in the bag becomes sufficiently large, the threshold number of word occurences required to set a bit will increase to balance the hash.