Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

征集回答错误和没有推荐答案的问题 #6

Open
wangtonghe opened this issue Jan 15, 2018 · 7 comments
Open

征集回答错误和没有推荐答案的问题 #6

wangtonghe opened this issue Jan 15, 2018 · 7 comments

Comments

@wangtonghe
Copy link
Owner

如题,请大家把没答出来的问题和推荐答案有误的问题贴出来,方便改进项目,以便得到更好的项目体验。

@dddreee
Copy link

dddreee commented Jan 16, 2018

阿加莎克里斯蒂笔下的大侦探波洛没有侦破过以下哪个案件?
['东方快车谋杀案', 'ABc谋杀案', '复仇女神案']
最佳答案是: �[1;31mABc谋杀案�[0m

正确答案: 复仇女神案

@wangtonghe
Copy link
Owner Author

@dddreee 好,感谢反馈。

@dddreee
Copy link

dddreee commented Jan 17, 2018

昨天试过了,10题有2题答对的,1题错的,其他就是找不到答案,不过还是挺感谢分享的

@wuyehack
Copy link

返回只两个百度的搜索连接,没答案
开始答题
{'log_id': 8121620080973045844, 'words_result_num': 3, 'words_result': [{'words': '6.下列哪一个景点不属于5A景区?'}, {'words': 'A.乌镇'}, {'words': 'B.东方明珠广播电视塔'}]}
A.乌镇
B.东方明珠广播电视塔
下列哪一个景点不属于5A景区?
['A.乌镇', 'B.东方明珠广播电视塔']
识别的文字是: ('下列哪一个景点不属于5A景区?', ['A.乌镇', 'B.东方明珠广播电视塔'])
搜索的题目是:哪一个景点5A景区
选项为:['A.乌镇', 'B.东方明珠广播电视塔']
https://www.baidu.com/s?wd=%E5%93%AA%E4%B8%80%E4%B8%AA%E6%99%AF%E7%82%B95A%E6%99%AF%E5%8C%BA
https://zhidao.baidu.com/search?word=%E5%93%AA%E4%B8%80%E4%B8%AA%E6%99%AF%E7%82%B95A%E6%99%AF%E5%8C%BA
百度网页搜索结果:[0, 0, 0]
百度知道结果:[0, 0, 0].
分数统计是:[0, 0, 0]

@omozi
Copy link

omozi commented Feb 3, 2018

题目都可以正常识别,但是网页和知道的结果和分数统计全部都是0

@tuxi
Copy link

tuxi commented Feb 3, 2018

html5lib未安装导致 没答案 问题:

  • 运行main.py后,发觉不管搜索任何问题,最终都是返回没有答案;
  • 通过DEBUG调试,发现在search.py的get_source()方法中抛出了异常,异常内容:
Couldn't find a tree builder with the features you requested: html5lib. Do you need to install a parser library?

解决方法:

pip install html5lib

也就是解析html的时候出错了,一直显示没有答案的朋友,可以安装html5lib 试试能否解决问题!

@omozi
Copy link

omozi commented Feb 4, 2018

192:~ fantasy$ pip3 install html5lib
Requirement already satisfied: html5lib in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages
Requirement already satisfied: six>=1.9 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from html5lib)
Requirement already satisfied: webencodings in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from html5lib)

安装了html5lib仍然全部没有答案

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants