Skip to content

[brat] brat rapid annotation tool

Myungchul Shin edited this page Apr 11, 2018 · 12 revisions

installation

<Directory /path/to/brat-v1.3_Crunchy_Frog>
    Options Indexes MultiViews FollowSymLinks
    AllowOverride Options Indexes FileInfo Limit
    AddType application/xhtml+xml .xhtml
    AddType font/ttf .ttf
    Addtype image/x-icon .ico
    Addtype text/css .css
    AddHandler cgi-script .cgi
    AddHandler php-script .xhtml
    AddHandler php-script .ico
    AddHandler php-script .png
    AddHandler php-script .ttf
    AddHandler php-script .gif
    AddHandler php-script .css
    Order allow,deny
    Allow from all
</Directory>
  • there is an error related relation annotation

conllu to brat format

Sejong corpus

  • sejong corpus to dependency corpus(conllu)
  • conllu to brat format
    • mentioned above brat_sejong.png
  • annotation.conf for Sejong corpus
# span and dependency types for Sejong corpus

[entities]

EC
EF
EP
ETM
ETN
JC
JKB
JKG
JKO
JKQ
JKS
JX
MAG
MAJ
MM
NNB
NNG
NNP
NP
NR
SE
SF
SL
SN
SO
SP
SS
SW
VA
VCN
VCP
VV
VX
XPN
XR
XSA
XSN
XSV

[relations]

# TODO: you need to make all possible combination.
...
MOD Arg1:ETN, Arg2:NNG
NP Arg1:NNG, Arg2:NNG
NP_AJT Arg1:NNG, Arg2:NNG
...
X_OBJ Arg1:NNG, Arg2:NNG
...

[events]

[attributes]
    • brat visual.conf for Sejong corpus
# visual configuration for Sejong corpus

[labels]

# POS tags
EC | EC
EF | EF
EP | EP
ETM | ETM
ETN | ETN
JC | JC
JKB | JKB
JKG | JKG
JKO | JKO
JKQ | JKQ
JKS | JKS
JX | JX
MAG | MAG
MAJ | MAJ
MM | MM
NNB | NNB
NNG | NNG
NNP | NNP
NP | NP
NR | NR
SE | SE
SF | SF
SL | SL
SN | SN
SO | SO
SP | SP
SS | SS
SW | SW
VA | VA
VCN | VCN
VCP | VCP
VV | VV
VX | VX
XPN | XPN
XR | XR
XSA | XSA
XSN | XSN
XSV | XSV

# dependencies
AP | AP
DP | DP
L | L
MOD | MOD
NP | NP
NP_AJT | NP_AJT
NP_CMP | NP_CMP
NP_CNJ | NP_CNJ
NP_MOD | NP_MOD
NP_OBJ | NP_OBJ
NP_SBJ | NP_SBJ
R | R
ROOT | ROOT
VNP_MOD | VNP_MOD
VP | VP
VP_AJT | VP_AJT
VP_CMP | VP_CMP
VP_MOD | VP_MOD
X | X
X_CMP | X_CMP
X_CNJ | X_CNJ
X_OBJ | X_OBJ

[drawing]

SPAN_DEFAULT    borderColor:darken

#ROOT   bgColor:#e3e3e3
EC  bgColor:#ccadf6
EF  bgColor:#ccadf6
EP  bgColor:#ccadf6
ETM bgColor:#ccadf6
ETN bgColor:#ccadf6
JC  bgColor:#ccadf6
JKB bgColor:#ccadf6
JKG bgColor:#ccadf6
JKO bgColor:#ccadf6
JKQ bgColor:#ccadf6
JKS bgColor:#ccadf6
JX  bgColor:#ccadf6
MAG bgColor:#fffda8
MAJ bgColor:#fffda8
MM  bgColor:white
NNB bgColor:#a4bced
NNG bgColor:#a4bced
NNP bgColor:#a4bced
NP  bgColor:#a4bced
NR  bgColor:#ccdaf6
SE  bgColor:#e3e3e3
SF  bgColor:#e3e3e3
SL  bgColor:#e3e3e3
SN  bgColor:#e3e3e3
SO  bgColor:#e3e3e3
SP  bgColor:#e3e3e3
SS  bgColor:#e3e3e3
SW  bgColor:#e3e3e3
VA  bgColor:#adf6a2
VCN bgColor:#adf6a2
VCP bgColor:#adf6a2
VV  bgColor:#adf6a2
VX  bgColor:#adf6a2
XPN bgColor:white
XR  bgColor:#adf6a2
XSA bgColor:#adf6a2
XSN bgColor:white
XSV bgColor:#adf6a2
Clone this wiki locally