My bot has some trouble recognizing first names and surnames. Also, the problem is that I use forms, so that I want to extract entities from single word responses, e.g. “First name?”, “Adam”. For some reason this latter option does not work well (sometimes the entity is not extracted, sometimes the intent is improperly recognized as a detour from the happy path), although it would seem trivial.
Since I work in Polish, I know that there is quite a good model for NER in spaCy, which includes recognizing names. The problem is that it does not distinguish between first names and last names, and just returns a single entity person_name (e.g. “Adam Smith”). I was thinking that the best solution would be to put spacy NER in the pipeline before the CRF extractor, in hope that it would treat the outputs of the former, as a feature in deciding. Is it possible?
BTW: Can i block detours from happy paths in any way?