A few years ago, I wrote a guide to using Stanford Natural Language Processing Group’s named entity recognition (NER) package to generate quick reports of documents, showing how it can be used to list and rank the personal, geographical, and organizational names in a text. In the future I plan on updating this guide, with some slightly more elegant code.

In the meantime, though, here are some quick installation instructions for Stanford NER on Ubuntu 18.04. Open up a terminal and navigate to the directory where you would like run the program from. (I tend to use ~/run/ but that’s just my own preference.) The following commands with download and install Stanford NER and satisfy all its dependencies:

sudo apt-get update; sudo apt-get upgrade -y
sudo apt-get install default-jre default-jdk aria2 -y
aria2c -x3 https://nlp.stanford.edu/software/stanford-ner-2018-02-27.zip
unzip stanford*.zip
rm stanford*.zip
mv stanford* stanford-ner