You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
An entity present in 9/10 transcripts should have score = 0.9 but we see 0.1
To Reproduce
Steps to reproduce the behavior:
- description: "Bug found on 23rd September 2021 double aggregation deletes entities."input:
- text: "I have paid online"entities:
- type: "payment"value: "online"
- text: "I have read online"entities:
- type: "payment"value: "online"
- text: "I had paid online"entities:
- type: "payment"value: "online"
- text: "I have to read online"entities:
- type: "payment"value: "online"
- text: "I have did online"entities:
- type: "payment"value: "online"
- text: "I have bed online"entities:
- type: "payment"value: "online"
- text: "I have dead online"entities:
- type: "payment"value: "online"
- text: "I have date online"entities:
- type: "payment"value: "online"
- text: "I have paid on line"
- text: "I have trade online"entities:
- type: "payment"value: "online"config:
style: "regex"candidates:
payment:
online:
- online|debit card|credit card|bhim upi|upi|amazon pay
- ऑनलाइन|डेबिट वार्ड|क्रेडिट कार्ड|भीम उपआयी|उपआयी|अमेज़न पेexpected:
- type: "payment"value: "online"score: 0.9
add the above in tests/plugin/text/test_list_entity_plugin/test_cases.yaml
Run make test.
Expected behavior
A clear and concise description of what you expected to happen.
Describe the bug
An entity present in 9/10 transcripts should have score = 0.9 but we see 0.1
To Reproduce
Steps to reproduce the behavior:
tests/plugin/text/test_list_entity_plugin/test_cases.yaml
make test
.Expected behavior
A clear and concise description of what you expected to happen.
Additional context
This block performs aggregation and then EntityExtractor's aggregation is called later here. This seems to be causing the scores to be recalculated incorrectly.
The text was updated successfully, but these errors were encountered: