class constructor modified for choosing different NER methods