def compute(self, length):
        """
        Compute frequency and entropy of this word
        @param length length of the document for training to get words
        """
        self.freq /= length
        self.left = entropyOfList(self.left)
        self.right = entropyOfList(self.right)

        Compute frequency and entropy of this word
        @param length length of the document for training to get words
        
wordseg/wordseg.py