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

Nederlab does not work with regex #25

Open
peterdekker opened this issue Jan 16, 2019 · 1 comment
Open

Nederlab does not work with regex #25

peterdekker opened this issue Jan 16, 2019 · 1 comment

Comments

@peterdekker
Copy link
Contributor

When issuing a regex query in UD in FCS:
[word="^g.*[^e]$"&pos="ADJ"]

Nederlab does not work and gives an error:
Error during execution of query or back-translation to UD. The query execution failed by this CLARIN-FCS (nederlab) endpoint. Query(cqp=[t_lc="^g.*[^e]$" & pos="ADJ"],server=https://www.nederlab.nl/api/mtas,corpus=nederlab) java.lang.IllegalArgumentException: Illegal group reference

@peterdekker
Copy link
Contributor Author

And when giving the following query:
[word="g.*[^e]"&pos="ADJ"] (same but without start/end signs)

Nederlab gives this error:
Error during execution of query or back-translation to UD. The query execution failed by this CLARIN-FCS (nederlab) endpoint. Query(cqp=[t_lc="g.*[^e]" & pos="ADJ"],server=https://www.nederlab.nl/api/mtas,corpus=nederlab) java.lang.RuntimeException: Exception while sending query { "response": { "mtas": { "list": [ { "field": "NLContent_mtas", "query": { "type": "cql", "value": "[t_lc=\"g.*[^e]\" & pos=\"ADJ\"]" }, "key": "tekst", "output": "token", "number": 10, "start": 0, "prefix": "t,lemma, pos, feat.tokentype, feat.pos, feat.ntype, feat.getal, feat.graad, feat.genus, feat.naamval, feat.positie, feat.buiging, feat.getal-n, feat.wvorm, feat.pvtijd, feat.pvagr, feat.numtype,feat.vwtype, feat.pdtype, feat.persoon, feat.status, feat.npagr, feat.lwtype, feat.vztype, feat.conjtype, feat.spectype", "left": 8, "right": 8 } ] } }, "cache": true }

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

1 participant