How to extract departure/arrival location from a query?


Following this example: “Find me a flight from Paris to Tokyo” how can you extract the fact that “Paris” and “Tokyo” are indeed location entities, but the first one has the role ‘departure’ whereas the second one relates to ‘arrival’.

I don’t know if something exist in RASA to handle that properly.

I’m very interested if you have resources on this.


1 Like

if you create enough training examples with from [some_location](departure) to [some_location](arrival) phrases, rasa_nlu should be able to learn to relate from with departure and to with arrival