Parser-v1
Parser-v1 copied to clipboard
A bug in 56 and 57 lines of lib/etc/k_means.py
56 while self._splits[i-1] >= self._splits[i] or self._splits[i-1] not in self._len_cntr: 57 self._splits[i-1] -= 1
1.When self._splits[i-1]=14 and self._splits[i]=5(That is possible because now self._splits[i] was obtained in the last loop。 ),line 57 is executed 。Then when self._splits[i-1]=4 and 4 is not in self._len_cntr , 57 is also executed so that self._splits[i-1] is decreasing on.There is no end. 2.What function it has。
come to the same problem.
you can find the solution in parser2 version, just replace respective codes from there and it will work