This PR makes minor changes in pairwise_pmi_ to improve numerical precision. Unfortunately, for some reason pairwise_pmigets broken with error:
Error in `colnames<-`(`*tmp*`, value = c("item1", "item2", "value")) :
attempt to set 'colnames' on an object with less than two dimensions
At this point the error message is pretty cryptic for me since log() function does not drop neither dimensions, nor attributes (names, colnames etc.) of objects, so it should have no impact whatsoever.
I'm posting the PR regardless of the error since it may possibly point at some problems with the package itself (sorry, I wasn't able to track it yet).
This PR makes minor changes in
pairwise_pmi_
to improve numerical precision. Unfortunately, for some reasonpairwise_pmi
gets broken with error:At this point the error message is pretty cryptic for me since
log()
function does not drop neither dimensions, nor attributes (names, colnames etc.) of objects, so it should have no impact whatsoever.I'm posting the PR regardless of the error since it may possibly point at some problems with the package itself (sorry, I wasn't able to track it yet).