doccano可以進行命名實體標注焕檬,情感極性標注以及語言翻譯標注,基本滿足NLP里的經典識別場景译断。
安裝啟動步驟:
- 首先我們需要安裝依賴項籽懦。運行以下命令:
sudo apt-get install libpq-dev
pip install -r requirements.txt
cd app
但是在第二步會遇到問題,有以下問題:
1)首先需要升級Python版本到3.5.3以上漓滔。
Python版本升級請看安裝python3.6并安裝pip3.6
2)Failed building wheel for psycopg2
pip3.6 install psycopg2-binary==2.8.3
3)ERROR: Failed building wheel for pyodbc
sudo apt-get install python3.6-dev
sudo apt-get install unixodbc-dev
python3.6 -m pip install pyodbc
2.接下來我們需要啟動webpack服務器,這樣前端就可以連續(xù)編譯了乖篷。在新的shell中運行以下命令:
cd server/static
npm install
npm run build
# npm start # for developers
cd ..
3.在運行之前响驴,我們需要進行遷移(migrate)。運行以下命令:
python manage.py migrate
4.接下來我們需要創(chuàng)建一個用戶誰可以登錄到管理網站撕蔼。運行以下命令:
python manage.py create_admin --noinput --username "admin" --email "admin@example.com" --password "password"
5.創(chuàng)建要分配給用戶的管理員豁鲤、批注者和批注審批者角色秽誊。運行以下命令:
python manage.py create_roles
6.最后,要啟動服務器琳骡,請運行以下命令:
python manage.py runserver