implemented named entity recognition