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

SpanAtrributeQuery with Regex (CQP + PQ+) #95

Open
margaretha opened this issue Sep 19, 2023 · 1 comment
Open

SpanAtrributeQuery with Regex (CQP + PQ+) #95

margaretha opened this issue Sep 19, 2023 · 1 comment

Comments

@margaretha
Copy link
Contributor

CQP region e.g. sentence / element with regex attributes does not work.

Example query:

/region[<s (class="header")>]

Error message:

713, "SpanAttributeQuery only supports SpanTermQuery."

@Akron Akron transferred this issue from KorAP/Krill Sep 19, 2023
@Akron
Copy link
Member

Akron commented Sep 19, 2023

Same with PQ+ and <s (class='header')>.

The resulting koral query is currently

  "query": {
    "@type": "koral:span",
    "attr": {
      "@type": "koral:term",
      "foundry": "base",
      "key": "class",
      "layer": "s",
      "match": "match:eq",
      "type": "type:regex",
      "value": "header"
    },
    "wrap": {
      "@type": "koral:term",
      "attr": {
        "@type": "koral:term",
        "foundry": "base",
        "key": "class",
        "layer": "s",
        "match": "match:eq",
        "type": "type:regex",
        "value": "header"
      },
      "foundry": "base",
      "key": "s",
      "layer": "s"
    }
  }
}

Krill seems to have a problem with regex in that place. Works with <s (class='header')>.

@Akron Akron transferred this issue from KorAP/Koral Sep 19, 2023
@Akron Akron changed the title SpanAtrributeQuery with Regex (CQP) SpanAtrributeQuery with Regex (CQP + PQ+) Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants