brat is a text annotation tool, you can mark entities, events, relationships, attributes, etc., only support under linux, its use requires webserver, tutorials given by the official using Apache2.
Recommended to download the release version brat, address: https: //github.com/nlplab/brat/releases/tag/v1.3p1
Installation process is as follows:
First, install apache2, use the command:
sudo apt-get install apache2
After installation will generate a www / html directory in / var, enter the directory:
cd / var / www / html
Move downloaded brat-1.3p1.zip file to the directory, use the following command to extract to the current directory
unzip brat-1.3p1.zip
Using the following command in the current directory rename brat-1.3p1 brat
mv brat-1.3p1 brat
Use the following command to authorize brat directory
sudo chmod 777 -R / var / www / html / brother
Brat into the directory, execute the following command, according prompted for a user name, password, administrator mailbox
cd / var / www / html / bratsudo ./ install . sh
Now apache2.conf configuration file: Execute command
vim /etc/apache2/apache2.conf
By adding the following at the end of the file, pay attention indent:
<Directory /var/www/html/brat>
AllowOverride Options Indexes FileInfo Limit
Require all granted
AddType application/xhtml+xml .xhtml
AddType font/ttf .ttf
Options +ExecCGI
AddHandler cgi-script .cgi
</Directory>
Restart apache2:
sudo service apache2 restart
Then open http://xxx.xxx.xxx.xxx/brat, xxx is where you brat host ip, the default port 80.
After opening the web page, you will find an error, what is wrong about the agreement, which is the pit where we need a step, as follows:
cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/cgi.load
The only way to use cgi module, which looks like a step not mentioned in the official documents of the brat. But even mention it at # 1141 issue of.
Next, reload apache2 configuration:
sudo service apache2 reload
Until then visit http://xxx.xxx.xxx.xxx/brat, you can see the following interface:
Then, the user name entered before, the password, you can use, and tutorials refer to the official document: http://brat.nlplab.org/configuration.html
Finally, we add more users:
Locate the line /var/www/html/brat/config.py corresponding increase:
USER_PASSWORD = {
'admn': 'admin',
'test': 'test',
# (add USERNAME:PASSWORD pairs below this line.)
}
After restarting, you can log in using the test.
ok, Benpian friends - so much content, thanks for reading O (∩_∩) O, 88 ~
Honesty and Honor, can self-discipline, not rope people.
How to rent a GPU servers in the cloud Ali doing deep learning?
Taught you do object detection (IV) with a deep learning: model uses
Taught you do object detection (three) with a deep learning: model training
Taught you do object detection (two) with a deep learning: data labeling
Taught you do object detection depth study (a): Fast feel cool object detection