/** * Returns all of the hashes for this probe. For most encoders, this is a singleton, but * for text, many hashes are returned, one for each word (unique or not). Most implementations * should only implement hashForProbe for simplicity. * * @param originalForm The original byte array value. * @param dataSize The length of the vector being encoded * @param name The name of the variable being encoded * @param probe The probe number * @return an Iterable of the hashes */ protected Iterable<Integer> hashesForProbe(byte[] originalForm, int dataSize, String name, int probe) { return Collections.singletonList(hashForProbe(originalForm, dataSize, name, probe)); }
/** * Returns all of the hashes for this probe. For most encoders, this is a singleton, but * for text, many hashes are returned, one for each word (unique or not). Most implementations * should only implement hashForProbe for simplicity. * * @param originalForm The original byte array value. * @param dataSize The length of the vector being encoded * @param name The name of the variable being encoded * @param probe The probe number * @return an Iterable of the hashes */ protected Iterable<Integer> hashesForProbe(byte[] originalForm, int dataSize, String name, int probe) { return Collections.singletonList(hashForProbe(originalForm, dataSize, name, probe)); }
/** * Returns all of the hashes for this probe. For most encoders, this is a singleton, but * for text, many hashes are returned, one for each word (unique or not). Most implementations * should only implement hashForProbe for simplicity. * * @param originalForm The original byte array value. * @param dataSize The length of the vector being encoded * @param name The name of the variable being encoded * @param probe The probe number * @return an Iterable of the hashes */ protected Iterable<Integer> hashesForProbe(byte[] originalForm, int dataSize, String name, int probe) { return Collections.singletonList(hashForProbe(originalForm, dataSize, name, probe)); }