implemented a parameter to annotator to allow passing a custom recognizer