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

Query rewrite for missing layer #249

Open
margaretha opened this issue Sep 13, 2021 · 0 comments
Open

Query rewrite for missing layer #249

margaretha opened this issue Sep 13, 2021 · 0 comments
Labels

Comments

@margaretha
Copy link
Contributor

margaretha commented Sep 13, 2021

Kustvakt should add a layer when it is not specified/missing by using the default layer or based on the user-settings.

Query example in Poliqarp
contains(<s>, [tt/p=KOUS])

Serialization:

"query": {
    "@type": "koral:group",
    "frames": [
      "frames:isAround"
    ],
    "operands": [
      {
        "@type": "koral:span",
        "rewrites": [
          {
            "@type": "koral:rewrite",
            "operation": "operation:injection",
            "scope": "foundry",
            "src": "Kustvakt"
          }
        ],
        "wrap": {
          "@type": "koral:term",
          "foundry": "base",
          "key": "s"
        }
      },
      {
        "@type": "koral:token",
        "wrap": {
          "@type": "koral:term",
          "foundry": "tt",
          "key": "KOUS",
          "layer": "p",
          "match": "match:eq"
        }
      }
    ],
    "operation": "operation:position"
  }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant