What is the best way to extract same type of entities with different label from text?
For example with below training data,
Transfer money from account 123456 to account 456789
I would like to extract [from account 123456] as (src_accnt) and [to account 456789] as (dst_accnt). So would it work with enough training examples labelled as below?
* transfer_money
- Transfer money from account [123456](src_account) to account [456789](dst_account)
- I need to transfer money from [123456](src_account) to [4567898](dst_account)
- Help me make a transition from [123456](src_account) to [312432](dst_account)
….
Maybe give it about 10 examples and see how it goes. If the account has a specific format, you can also use regex feature to make it easier for the bot to recognize.
I agree with @fuih. Currently that is your best shot. If the from account is always preceded with a “from” and the to account is always preceded with a “to”, it might actually work. Otherwise it is hard to distinguish between them if the account numbers look the same.