Named Entity Recognition Tool for

This tool takes container documents (MPEG21-DIDL, METS), parses out all references to ALTO files and tries to find named entities in the pages (with most models: Location, Person, Organisation, Misc). The aim is to keep the physical location on the page available through the whole process to be able to highlight the results in a viewer. Read more about it on the KBNLresearch blog.
Currently, Stanford NER is used for tagging.
At the moment, the following output formats are implemented:
Basic usage:
Help:
java -jar NerAnnotator.jar --help
Print result to stdout for German language:
java -Xmx800m -jar NerAnnotator.jar -c mets -f alto -l de -m de=/path/to/trainingmodels/german/hgc_175m_600.crf.ser.gz -n 2 /path/to/mets/AZ_19260425/AZ_19260425_mets.xml
To be able to compare your results with a baseline we provide you with some test files located in the 'test-files' directory.
Run the following command:
java -Xmx5G -cp target/NerAnnotator-0.0.2-SNAPSHOT-jar-with-dependencies.jar edu.stanford.nlp.ie.crf.CRFClassifier -prop test-files/austen_dutch.prop
This should result in a file called 'eunews_dutch.crf.gz' located in the directory 'test-files'. The size of the generated classifier should be around 1MB.
To verify the NER software use the created classifier to process the provided example file.
java -jar target/NerAnnotator-0.0.2-SNAPSHOT-jar-with-dependencies.jar -c alto -d out -f alto -l nl -m nl=./test-files/eunews_dutch.crf.gz -n 8 ./test-files/dutch_alto.xml
Now you can compare the output with the example output provided.
diff out/dutch_alto.xml-annotations/dutch_alto.xml.alto.xml ./test-files/dutch_alto_processed_output.xml
The same prcedure can be applied using the German example files.
The austen.prop file (basic version) can be found here:
http://nlp.stanford.edu/downloads/ner-example/austen.prop
$ claude mcp add europeananp-ner \
-- python -m otcore.mcp_server <graph>