I would like to extract the origin and destination from the given text.
For example,
I am travelling from London to New York.
I am flying to Sydney from Singapore.
Origin -- > London, Singapore. Destination --> Sydney, New York.
NER would give only the Location names, but couldn't fetch the Origin and destination.
Is it possible to train a neural model to detect the same ?
I have tried training the neural networks to classify the text like,
{"tag": "Origin",
"patterns": ["Flying from ", "Travelling from ", "My source is", ]
This way we could classify the text as origin, but I need to get the values as well (London , Singapore in this case).
Is there anyway we can achieve this?