codegooglecom / cjklib

Automatically exported from code.google.com/p/cjklib
Other
0 stars 0 forks source link

Crash with CFDICT #22

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
This code
from cjklib.dictionary import *

d = CFDICT()
result = d.getFor(u'哪儿')

What is the expected output? What do you see instead?
I get this error instead of the translation:
File 
"C:\Python27\lib\site-packages\cjklib-0.3.2-py2.7.egg\cjklib\dictionary\format.p
y", line 151, in format
    for idx, entity in enumerate(reading.split(' ')):
AttributeError: 'NoneType' object has no attribute 'split'

What version of the product are you using? On what operating system?
0.3.2
Windows XP

Please provide any additional information below.

Original issue reported on code.google.com by dore...@gmail.com on 25 Sep 2013 at 11:15