Hi, I am facing a problem in extracting the user name from the middle of a sentence. As all know we can't predict names.

RASA version 2.3.1

RASA sdk version 2.3.1

Python version 3.8.5

Hi, I am facing a problem in extracting the user name from the middle of a sentence. As all know we can’t predict names.

example:

User: I am xxx

bot: welcome xxx

I tried some solutions like this but it didn’t workout for me. Are there any other ways?

nlu.yml

  • intent: user_name

    example: |

  • regex: name

    example: |

    • [a-zA-z]
  • intent: user_name

    example: |

  • lookup: name

    example: |

    • abc

    • xyz

Hi there! You could try using SpacyEntityExtractor to predict/extract more common names assuming the input has correct capitalization.

Alternately, you could check out the rasa examples namelists lookup tables and pair them with FlashTextEntityExtractor. Hope this helps somewhat! :smiley: