Combination (Math) implementation in NLTK #1181
Strangely, python don't seem to provide a quick/easy way to get mathematical combinations/choose (nCr). It's sort of essential for the RIBES algorithms and most rank-based Machine Translation metrics.
Would it be okay to add this function to NLTK? It seems to be the fastest computation of
I could do a wrap for the code shipped with native python but it's kind of silly to generate combinations everytime i need to count
If it's alright to add the combination calculation function to NLTK where should it go?
Or maybe it's already in the pipeline in newer versions of python. Does anyone know about that?
Currently, the combination binomial coefficient is implemented in
referenced this issue
Nov 2, 2015
After some tests,