##########新版本参考,官方地址
github官方链接:https://github.com/doccano/doccano
官方指导:https://doccano.github.io/doccano/
linux安装参考
https://zhuanlan.zhihu.com/p/371752234
Docker
As a one-time setup, create a Docker container as follows:
一、
docker pull doccano/doccano
二、
-e username=“ritchie”: 设置环境变量;
–volume , -v: 绑定一个卷
-p: 指定端口映射,格式为:主机(宿主)端口:容器端口
docker container create --name doccano \
-e "ADMIN_USERNAME=admin" \
-e "ADMIN_EMAIL=admin@example.com" \
-e "ADMIN_PASSWORD=password" \
-v doccano-db:/data \
-p 8000:8000 doccano/doccano
Next, start doccano by running the container:
三、
docker container start doccano
To stop the container, run docker container stop doccano -t 5. All data created in the container will persist across restarts.
四、
http://127.0.0.1:8000/
如果是服务器部署,此处换成服务器的ip,注意端口要先开通
使用参考
https://zhuanlan.zhihu.com/p/371752234
导出数据格式如下所示
五、标注的时候,鼠标放在文字那个位置
win10安装参考
1、sqlite3安装参考:
https://cloud.tencent.com/developer/article/2056226
https://www.sqlite.org/download.html
下载圈起来这两个,然后解压,拷贝到一个文件夹
2、doccano安装 python3.8以上
2.1
pip install doccano
2.2
# Initialize database.
doccano init
# Create a super user.
doccano createuser --username admin --password pass
# Start a web server.
doccano webserver --port 8000
2.2.1
上述过程可能报错如下
windows /mac/linux django错误 sqlite3.OperationalError: no such function: JSON_VALID
2.2.2 、解决方案
http://www.chenxm.cc/article/1349.html.html
把第一步 下下的sqlite,拷贝到python目录下
2.3、打开另外一个终端输入
In another terminal, run the following command:
# Start the task queue to handle file upload/download.
doccano task