Get the POS tags of intents

Hello everyone,

I was wondering if there is a way (inside a custom action) to retrieve the POS tags of the tokens in the user intent. I thought about doing it with NLTK, but that would be redundant if RASA NLU can provide it.


you can create a custom nlu component that will set POS tags (extracted from spacy or nltk) as entities for tokens. Then access them as entities.

But I think it is simpler to use spacy or nltk directly in custom action from user text

Hi @Ghostvv, thanks a lot for your answer, I’ll go with the 2nd approach then.