Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set role/group only to existing labels #5788

Closed
tabergma opened this issue May 7, 2020 · 0 comments
Closed

Set role/group only to existing labels #5788

tabergma opened this issue May 7, 2020 · 0 comments
Assignees
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR

Comments

@tabergma
Copy link
Contributor

tabergma commented May 7, 2020

If you are using entity roles/groups, the model can predict something like

    "predicted_entities": [
      {
        "entity": "city",
        "start": 43,
        "end": 51,
        "role": "O",
        "value": "new york",
        "extractor": "DIETClassifier"
      }

The role is set to O, but there is no O role label in the training data. It basically refers to "no role label detected". Instead of setting the role to O, we should remove it from the entity returned by the model.

@tabergma tabergma added type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR area:rasa-oss 🎡 Anything related to the open source Rasa framework labels May 7, 2020
@tabergma tabergma self-assigned this May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:rasa-oss 🎡 Anything related to the open source Rasa framework type:enhancement ✨ Additions of new features or changes to existing ones, should be doable in a single PR
Projects
None yet
Development

No branches or pull requests

1 participant