This repository was archived by the owner on Sep 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Strange Skill regex behaviour #2294
Copy link
Copy link
Closed
Description
Interested in any comments or hypotheses on this one...
It was flagged that some utterances like "tell me about the royal bank of canada" were not receiving any response from Mycroft. So first stop was to investigate the Skill itself.
- With the existing Skills regex, the Article Title is extracted correctly and returns a confidence of 0.375 however the intent does not seem to be triggered.
- While playing around, adding an additional regex line:
.*(wiki|for|about|wikipedia)(?! (for|about)) the (?P<ArticleTitle>.+)
correctly triggered the intent despite it now returning a lower confidence of 0.1875.- Doing this as a one liner:
.*(wiki|for|about|wikipedia)(?! (for|about))( the|) (?P<ArticleTitle>.+)
extractedArticleTitle
as "the" instead of "royal bank of canada"
- Doing this as a one liner:
- Reverting the regex back to the original single line now matches the utterance and triggers the intent correctly.
So I'm presuming that it's something in the regex registration or caching, but thought I'd seek advice before diving too deep into the rabbit hole.
Metadata
Metadata
Assignees
Labels
No labels