写代码、搜问题,全部都在「终端」完成!如此编程神器,是时候入手了
贾浩楠 发自 凹非寺
安装教程
pip install codequestion
pip install git+https://github.com/neuml/codequestion
pip install txtai -f https://download.pytorch.org/whl/torch_stable.html
brew install libomp
AI驱动的问答机制
unzip cqmodel.zip ~/.codequestion
mkdir -p ~/.codequestion/test/stackexchange
wget https://raw.githubusercontent.com/neuml/codequestion/master/test/stackexchange/query.txt -P ~/.codequestion/test/stackexchange
wget http://ixa2.si.ehu.es/stswiki/images/4/48/Stsbenchmark.tar.gz
tar -C ~/.codequestion/test -xvzf Stsbenchmark.tar.gz
python -m codequestion.evaluate -s test
基本原理
Id INTEGER PRIMARY KEY
Source TEXT
SourceId INTEGER
Date DATETIME
Tags TEXT
Question TEXT
QuestionUser TEXT
Answer TEXT
AnswerUser TEXT
Reference TEXT
离线开发好帮手
参考链接&传送门:
https://github.com/neuml/codequestion
https://visualstudio.microsoft.com/visual-cpp-build-tools/
https://mp.weixin.qq.com/s/5vfQRsAZ4zEKOJnUNT8Ebg
关注恋习Python,Python都好练
评论