I am working on an NLP Chatbot project. The Chatbot will need to process requests like the following:
"I want to go to Penn Station from Back Bay Station" and "I want to go from Back Bay Station to Penn Station"
In each case, I want to extract the source train station as "Back Bay Station" and the destination as "Penn Station." However, because of the sentence re-ordering, I am not sure how to do this.
Any advice, including examples, would be much appreciated.
Two ways.