grantjenks / python-wordsegment

English word segmentation, written in pure-Python, and based on a trillion-word corpus.
http://www.grantjenks.com/docs/wordsegment/
Other
365 stars 49 forks source link

import error #18

Closed ffxz closed 6 years ago

ffxz commented 6 years ago

when i use 'from wordsegment import clean' command, i get the information"ImportError: cannot import name clean"

ffxz commented 6 years ago

i know, if i want to use clean function, i should type in command as follow: import wordsegment c = wordsegment.Segmenter() c.clean('i am a boy')

then, the result is : 'iamaboy'

grantjenks commented 6 years ago

Fixed at 887c187 and deployed at 1.2.0