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

Do not interpret placeholder symbols in regular expressions in C2 #63

Open
Akron opened this issue Jul 16, 2019 · 0 comments
Open

Do not interpret placeholder symbols in regular expressions in C2 #63

Akron opened this issue Jul 16, 2019 · 0 comments
Labels

Comments

@Akron
Copy link
Member

Akron commented Jul 16, 2019

First fix #66!

When using the regular expression operator #REG(...) confusingly regular expression operators that are also placeholders will first be interpreted as placeholders before the regular expression is interpreted.
So #REG(B.?um) is translated to

{
  "@type": "koral:token",
  "wrap": {
    "@type": "koral:term",
    "foundry": "opennlp",
    "key": "B..um",
    "layer": "orth",
    "match": "match:eq",
    "type": "type:regex"
  }
}

The expected translation is

{
  "@type": "koral:token",
  "wrap": {
    "@type": "koral:term",
    "foundry": "opennlp",
    "key": "B.?um",
    "layer": "orth",
    "match": "match:eq",
    "type": "type:regex"
  }
}
@Akron Akron added the bug label Jul 16, 2019
@Akron Akron changed the title Do not support placeholder symbols in regular expressions in C2 Do not interpret placeholder symbols in regular expressions in C2 Jul 16, 2019
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