ufal / perl-pmltq-web

Simple web build on the top of the PML Tree Query server
https://lindat.mff.cuni.cz/services/pmltq/
0 stars 0 forks source link

wish: concordance view #110

Open Ansa211 opened 7 years ago

Ansa211 commented 7 years ago

Instead of showing a single sentence and it's corresponding tree(s), show a clickable list of the text of the found sentences (probably just in black and white, i.e., without the current highlighting of clauses).

When https://github.com/ufal/perl-pmltq-web/issues/101 "highlight a node from the query in the sentence" will be implemented, it would be nice if it could be used for the concordance view as well.

A decision would have to be made what sentences should be listed if the query corresponds to several different sentences (e.g. in some queries with several "root nodes" such as http://hdl.handle.net/11346/PMLTQ-LHTS; but also in case of correference relations, where it will not be immediately obvious from the shape of the query: http://hdl.handle.net/11346/PMLTQ-JHEQ). A multiple-column view (with one column for each node in the query) would be one option; showing the sentences only for a particular node from the query would be another (and the user could change the selection of the node in the usual way, just as they do when going through the sentences one-by-one).

matyaskopp commented 7 years ago

It is a great idea! But it should be done carefully.

I think that there should be done some caching. Currently we store data in both form sql and pml(xml file). There should be added some simple text form (sentences with ids) to improve performance.