[CWB] CQPWeb and s-attributes
Hardie, Andrew
a.hardie at lancaster.ac.uk
Wed Oct 31 04:06:47 CET 2012
Hi Martí,
Sorry, I was unclear. You can certainly index s-attributes and their markup – either by doing it externally, as you say, or even by entering the correct codes for cwb-encode into the “Custom s-attribute” form. And they can then be queried.
What you can’t yet do is link s-attributes to an external database the way you can link the text_id elements to a database of meta-info.
XML visualisation is not completely written yet; I programmed half of it last spring, then ran out of time. That’s why it doesn’t work. Sorry!
best
Andrew.
From: cwb-bounces at sslmit.unibo.it [mailto:cwb-bounces at sslmit.unibo.it] On Behalf Of Martí Quixal
Sent: 30 October 2012 22:45
To: cwb at sslmit.unibo.it
Subject: [CWB] CQPWeb and s-attributes
Hi all, hi Andrew,
in a previous email where I asked about adding metadata to a corpus using CQPWeb (when I meant in fact s-attributes) you said this:
CQPweb's awareness of XML currently leaves rather a lot to be desired as XML-element-level-data cannot currently be added in. When I get a reasonable chunk of programming time, I intend to address this.
However, playing around I realised that if I encode the corpus externally and then upload it from the interface using the already command-line encoded version of the corpus, XML tags converted into s-attributes can in deed be queried/displayed, even using the attribute-value pairs of the structure markup xml tags. Is that correct?
Is there any other thing I should be aware of? Like other restrictions that I might encounter.
For instance, one thing that does not seem to be working is the visualization options: I have a rule that says
in an occurrence of <speaker>
where type matches int use italics
but I get something like
CQP sent back these error messages:
**** CQP ERROR ****
CQP Error:
No such attribute: speaker_
If I add a rule for the speaker_type markup then the message is similar but not exactly the same:
CQP sent back these error messages:
**** CQP ERROR ****
CQP Error:
No such attribute: speaker_type_
CQP Error:
No such attribute: speaker_type_type
In the first case it seems that is not getting that I want it to search for speaker type="int", in the second case it seems it is duplicating the type attribute...
Thanks in advance!
Martí
--
Martí Quixal
Computational Linguist & Educational Technologist
http://www.iqubo.org/quixal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://devel.sslmit.unibo.it/pipermail/cwb/attachments/20121031/41f1da28/attachment-0001.html>
More information about the CWB
mailing list