Open whikloj opened 9 months ago
Apologies, I thought I had already commented on this. It looks like the spec indeed allows for floating points. I guess we should maybe get rid of the int()
call and just replace it with float()
, unless the code promised the confidence was an integer. The documentation just says word confidence, 0 - 100
, so I suppose we could probably go with a float.
If your confidence is not a whole number then parsing it throws an Exception at line 186 of parse.py
Code that offends is.
You can also just test this with any old python.
Solution is to convert to
float()
first.or perhaps use the float instead of an integer