I am trying to extract entity
insurance_provider (name of insurance company) using DIET Classifier + RegexFeaturizer & lookup table. Entity extraction is failing for a lot of test examples, even though the entity value is present in the lookup table.
I’ve added the config.yml file, lookup table, training & test examples here:
What I’ve observed is that if I keep the sentence structure of the test example the same as training, then entity extraction works. For e.g training example (where entity: royal sundaram):
i renewed it from royal sundaram
And i use the below example for testing then I am able to extract the entity (i.e tata aig)
i renewed it from tata aig
But If the test example has a different sentence structure (for e.g
I chose tata aig) that is not seen in training, then it fails. Also, please note that this example:
I chose tata aig is getting classified to the right intent.
Any idea what am I missing?