屏幕上显示错误: 关于导入nltk:
ImportError:无法导入名称raise_unorderable_types
我已经检查了这些:
重新安装nltk使用:pip2 install nltk --upgrade
当我尝试nltk.download这样的命令行级nltk命令时,它仍然会抛出相同的错误
Python版本:2.7.6 IPython Shell版本:1.2.1
let response = [{"latlng":{"latitude":"40.3565","longitude":"27.9774"}},{"latlng":{"latitude":"40.3471","longitude":"27.9598"}},{"latlng":{"latitude":"40","longitude":"27.9708"}}]
response = response.reduce((prev,curr,index)=>{
curr.key = index;
prev.concat(curr)
},[]);