Correctly computes score when an entity is mentioned >1 times

By computing the distance from each word to each instance of 'entity'
and then summing the scores.

also includes the ner script to run the ner server, needed before
scoring sentences.