[CWB] [cwb:feature-requests] #21 CQPweb: query-diff postprocess
Andrew Hardie
andrewhardie at users.sourceforge.net
Sun Mar 15 21:47:50 CET 2020
- **status**: open --> closed
- **Group**: --> TODO-3.5
- **Comment**:
Diff / union / intersect implemented in CQPweb as of 3.2.42 (ish) albeit the interface is still NOT pretty. New ticket opened for Stefan's subquery suggestion.
---
** [feature-requests:#21] CQPweb: query-diff postprocess**
**Status:** closed
**Group:** TODO-3.5
**Labels:** CQPweb
**Created:** Mon Jul 20, 2009 05:25 AM UTC by Andrew Hardie
**Last Updated:** Tue Aug 26, 2014 11:31 AM UTC
**Owner:** Andrew Hardie
Idea for an additional postprocess function: query-diff ie difference between two queries.
Have an option on the concordance-page menu "filter out results shared with another query".
This goes to an admin page, where the user's saved queries are listed.
The orig query the user came from is q1, the saved query they select is q2.
Running the postprocess creates a new query containing all && only the hits in q1 that do not occur in q2.
How to implement: create a temporary mySQL table for q2's conc lines \(begin position / end position \[implemented as one field or 2?? \]\).
Then, dump q1.
Read the dump line by line -- check the temp table to see if it's there,
\--------If it is, skip it.
\--------If it isn't, write it to tempfile
Finally, if there is anything in tempfile, add the number of hits at the start \(creating tempfile2\) && undump tempfile2 to create the new query.
---
Sent from sourceforge.net because cwb at sslmit.unibo.it is subscribed to https://sourceforge.net/p/cwb/feature-requests/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/cwb/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20200315/e0ce6c61/attachment.html>
More information about the CWB
mailing list