hipster-philology / pyrrha

A language-independent post-correction app for POS-tagging and lemmatization
https://pyrrha.huma-num.fr
MIT License
27 stars 16 forks source link

CQL for a more advanced search #200

Open ngawangtrinley opened 4 years ago

ngawangtrinley commented 4 years ago

Is your feature request related to a problem? Please describe. Not a request per se. Just wondering if you thought about making the search a bit more powerful with multi-token CQL style queries.

Describe the solution you'd like Something like this or this

PonteIneptique commented 4 years ago

I understand the need but there is close to no chance this feature comes on pyrrha. This is a very different structure. On the other hand, you can always export to tei and use xquery or the likes to do so?

Le mer. 12 août 2020 à 5:34 PM, ngawangtrinley notifications@github.com a écrit :

Is your feature request related to a problem? Please describe. Not a request per se. Just wondering if you thought about making the search a bit more powerful with multi-token CQL style queries.

Describe the solution you'd like Something like this https://github.com/proycon/pynlpl/blob/master/pynlpl/formats/cql.py or this https://explosion.ai/demos/matcher

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/hipster-philology/pyrrha/issues/200, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOXEZSBSJSB5EEFVTGBVM3SAKY7JANCNFSM4P44DTHA .

PonteIneptique commented 2 years ago

Retroactively, I think some of it is possible, but we'll need to "control" how much. Basically, playing with (token.order_id - current_token.order_id) < Y or something like that, we should be able to introduce some contextual search

ngawangtrinley commented 2 years ago

That looks interesting! @lungsang could you have a look at this next week?

PonteIneptique commented 2 years ago

This would have to be at least reduced in scope: only one previous token and one next token, but this seems doable :)

lungsang commented 2 years ago

That looks interesting! @lungsang could you have a look at this next week?

Okay