improve ner benchmarking code