This can almost be done with the current artifacts from the TM algorithm, by scoring number of distal synapses and their permanence to generate a non-binary SDR. It might require a global decay rate to be added to be used as a tie-breaker in cases where two paths are statistically equally likely to occur though.
I’ve never tried this myself though, as I haven’t had a need for it, so purely speculation on my part