-
Notifications
You must be signed in to change notification settings - Fork 76
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
fix uppercase in entity detection #154
Conversation
Release v0.1.0
Release v0.1.1
Release v0.1.2
Release v0.1.3
Release v0.1.4
Release v0.1.4
Release v0.1.5
Release v0.1.6
@@ -620,6 +620,8 @@ def find_top_triplets(entity, entity_substr, pos=None, token_conf=None, conf=Non | |||
triplets["token_conf"] = token_conf | |||
if conf is not None: | |||
triplets["conf"] = conf | |||
if entity_substr in entity_label.lower(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
а entity_substr всегда lowercased?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не всегда, пофиксил
state_formatters/dp_formatters.py
Outdated
@@ -536,20 +536,22 @@ def el_formatter_dialog(dialog: Dict): | |||
num_last_utterances = 2 | |||
ner_output = get_entities(dialog["human_utterances"][-1], only_named=True, with_labels=True) | |||
nounphrases = dialog["human_utterances"][-1]["annotations"].get("cobot_entities", {}).get("entities", []) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
заменить на
nounphrases = get_entities(dialog["human_utterances"][-1], only_named=False, with_labels=False)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ок
все равно что-то не так. см логи тестов - сущности из реплики пользователя не cased |
No description provided.