Other languages and GQL

22 views
Skip to first unread message

Paweł Kacprzak

unread,
Aug 8, 2016, 12:10:00 PM8/8/16
to Quepy
Hi, 

I'm new to Quepy. I just stumbled upon it on github. It looks like a perfect tool for me, but the question is can I adapt it to work with other languages than English and write a custom GQL output format?

Rafael Carrascosa

unread,
Aug 8, 2016, 12:27:55 PM8/8/16
to qu...@googlegroups.com
Hi,

Yes and yes, but will have to code your way through, it's not plug and play.

Input language:
If your target language is 'western' (ie, it splits words with spaces, simple inflections) maybe you can just ignore the POS tagging in the templates and work your way with the tokens. Ie, just ignore everything and write query templates happy-go-lucky.
If you need better support for more complex queries or a more complex language then you are going to have replace the english preprocessing (tokenization and pos tagging) with your own. Look at the code for this part, it's not complex or long.

Output language:
It looks like you could get a subset of GQL working with quepy. Quepy uses an internal intermediate representation and at the last time it compiles the output. Check out how the output is built for SPARQL and MQL as examples. You will have to write your own module for GQL.

Send us a pull request, cheers!


On Mon, Aug 8, 2016 at 1:09 PM, Paweł Kacprzak <pawel.ka...@gmail.com> wrote:
Hi, 

I'm new to Quepy. I just stumbled upon it on github. It looks like a perfect tool for me, but the question is can I adapt it to work with other languages than English and write a custom GQL output format?

--
You received this message because you are subscribed to the Google Groups "Quepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to quepy+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages