Skip to content
This repository was archived by the owner on Sep 8, 2024. It is now read-only.

Strange Skill regex behaviour #2294

@krisgesling

Description

@krisgesling

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.

  1. 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.
  2. 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>.+)
      extracted ArticleTitle as "the" instead of "royal bank of canada"
  3. 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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions