import wordsegment as ws
seg=ws.Segmenter()
seg.score('industry','oil')
Traceback (most recent call last):
File "<pyshell#21>", line 1, in
seg.score('industry','oil')
File "C:\Python3\lib\site-packages\wordsegment__init.py", line 108, in score
return self.score(word)
File "C:\Python3\lib\site-packages\wordsegment\init__.py", line 93, in score
return 10.0 / (total * 10 ** len(word))
ZeroDivisionError: float division by zero
using wordsegment-1.1.6-py2.py3-none-any.whl