@staticmethod
    def _expected_values(cont):
        """Calculates expected values for a contingency table."""
        n_xx = sum(cont)
        # For each contingency table cell
        for i in range(4):
            yield (cont[i] + cont[i ^ 1]) * n_xx / (cont[i] + cont[i ^ 2])
dataset/ETHPy150Open nltk/nltk/nltk/metrics/association.py/BigramAssocMeasures._expected_values/swapped operands of `/`