Parser-v1 icon indicating copy to clipboard operation
Parser-v1 copied to clipboard

A bug in 56 and 57 lines of lib/etc/k_means.py

Open wudeshi opened this issue 7 years ago • 2 comments

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。

wudeshi avatar Apr 11 '18 09:04 wudeshi

come to the same problem.

hailiang-wang avatar May 04 '18 05:05 hailiang-wang

you can find the solution in parser2 version, just replace respective codes from there and it will work

Eugen2525 avatar Nov 10 '18 08:11 Eugen2525