leondz / cavat

Automatically exported from code.google.com/p/cavat
3 stars 1 forks source link

Division by zero on a state report #39

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Fix this:

# CAVaT Corpus Analysis and Validation for TimeML
# Version:  0.1   Support:  leon@dcs.shef.ac.uk
cavat> show state of tlink reltype where signalid is unfilled
Traceback (most recent call last):
  File "./cavat.py", line 344, in <module>
    filledPct = "%0.1f" % (float(filledTags) * 100 / totalTags)
ZeroDivisionError: float division

Original issue reported on code.google.com by leonderczynski on 11 Mar 2010 at 4:57

GoogleCodeExporter commented 9 years ago
Fixed

Original comment by leonderczynski on 19 Mar 2010 at 3:34