debug errors with named entity recognition