nltk.FreqDist.r_Nr¶
-
FreqDist.r_Nr(bins=None)[source]¶ Return the dictionary mapping r to Nr, the number of samples with frequency r, where Nr > 0.
Parameters: bins (int) – The number of possible sample outcomes. binsis used to calculate Nr(0). In particular, Nr(0) isbins-self.B(). Ifbinsis not specified, it defaults toself.B()(so Nr(0) will be 0).Return type: int