morant -w /path/to/wikip.db -s=/path/to/system.db --tmp /path/to/mytmp --users users.json --ma=http://localhost:5000 -b 8000
With the above command, you can access http://localhost:8000/ with a browser.
wikip.db
for-w
optionusers.json
for--users
option- User definition file. See
users.example.json
.
- User definition file. See
See morant -h
for the detail.
-b
or--bind
- Port number for the morant
--ma
- The address of
macomp-server
- The address of
system.db
is where the user annotation is stored- You can graceful restart by using
kill -USR2 <PID>
- Sessions are stored a directory under the temporary directory
morant requires golang.
sudo apt-get install golang
echo 'export GOPATH=~/.go; export PATH=$PATH:$GOPATH/bin' >> ~/.bashrc
soruce ~/.bashrc
go get github.com/mattn/go-sqlite3
go install github.com/mattn/go-sqlite3
go get github.com/FairyDevicesRD/morant/cmd/morant
python3 ./sqlite2tsv.py -w /path/to/wikip.db -s /path/to/system.db > data.tsv
@INPROCEEDINGS{hayashibe:2017:SIGNL231,
author = {林部祐太},
title = {日本語部分形態素アノテーションコーパスの構築},
booktitle = "情報処理学会第231回自然言語処理研究会",
year = "2017",
pages = "NL-231-9:1-8",
publisher = "情報処理学会",
}
fresh
is convenient for developpment.
go get -u github.com/pressly/fresh
fresh -r --wikipedia=/path/to/wikip.db -r -s=/path/to/system.db -r --tmp=./tmp/out -r --users=/path/to/users.json -p ./cmd/morant