[CWB] [ cwb-Bugs-3208730 ] CQP: implicit expansion A^s works only
once
SourceForge.net
noreply at sourceforge.net
Mon Aug 1 00:51:13 CEST 2011
Bugs item #3208730, was opened at 2011-03-13 10:29
Message generated for change (Settings changed) made by andrewhardie
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=722303&aid=3208730&group_id=131809
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: CQP engine
>Group: TODO-3.5
Status: Open
Resolution: None
Priority: 6
Private: No
Submitted By: Stefan Evert (schtepf)
Assigned to: Stefan Evert (schtepf)
Summary: CQP: implicit expansion A^s works only once
Initial Comment:
CQP syntax allows the shorthand "A^s" for implicit expansion of a named query result to full sentences (or any other s-attribute); i.e. "A^s" should be equivalent to "A expand to s". This has been used traditionally for subqueries in sentences containing matches of A, by activating the implicit subcorpus "A^s;".
At least in recent versions of CQP, this doesn't work as expected. Apparently, "A^s" creates a new named query result, i.e. it is equivalent to the statement "A^s = A expand to s;". If the named query result A is changed, the next invocation of "A^s" (either as subcorpus activation "A^s;" or in an assignment "B = A^s;") will not re-do the expansion to sentences, but access the previously stored data.
Reproducible example:
[no corpus]> DICKENS;
DICKENS> A = "things";
DICKENS> size A;
914
DICKENS> size A^s;
895
DICKENS> A = "interesting";
DICKENS> size A;
160
DICKENS> size A^s;
895
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=722303&aid=3208730&group_id=131809
More information about the CWB
mailing list