nlplab/brat — pull request #1085 by priancho (2014-04-05 16:03:55+00:00)
Title: Add: Dictionary-based NER tagger server is added. 

I added a tools/pubdic_tagger.py script for dictionary-based automatic entity tagging.
The script is based on randomtagger.py, so it can be invoked from BRAT directly.

It uses a REST-API of the PubDictionaries (http://pubdictionaries.org/) service.
What you need to do is:
1) upload a dictionary to PubDictionaries
2) get the annotator url of your dictionary (or other's)
(You can choose multiple dictionaries too. But you need to change some code to reflect what dictionaries are used for recognized entities.)
3) replace annotator_url variable in the script with your annotator url
4) run the script
5) add your service under [tools] section in tools.conf

now you can run the tagger under data menu in BRAT.

I tested the code with the BRAT installed in my local machine, but of course there may be some bugs.
Please let me know (or directly fix it :-)

Best wishes,
Han-Cheol