A local [NCBO Annotator] (http://bioportal.bioontology.org/annotator) replacement to annotate RadLex terms.
You can check how to use the annotator by reading the test code.
From the tests I've done, it replicates the behaviour of NCBO Annotator with a sweet extra that annotates some terms that BioPortal annotator doesn't annotate. For example, this system annotates “benign” in “•Benign” (note the little black point) but NCBO's doesn’t.
Having said this, this system is way slower than NCBO's one, even though it is local.
If speed is something important to your project but you don't want to depend on a third-party's service, you can ask for the NCBO Virtual Appliance, which includes the NCBO Annotator (NBO Annotator GitHub repository).
I wrote one "sanity-check test" to be sure nothing is broken when some code is changed. To run it, do:
bash run_tests.sh