- From: Yves Savourel <ysavourel@enlaso.com>
- Date: Thu, 21 Feb 2013 08:47:18 -0700
- To: "'Philip'" <Philip.Oduffy@ul.ie>, <public-multilingualweb-lt@w3.org>
Hi Philip, It seems your problem is really with the annotatorsRef, not the mt-confidence as the expected output doesn’t have mtConfidence values for the attributes). See http://www.w3.org/International/multilingualweb/lt/drafts/its20/its20.html#its-tool-annotation: “The attribute applies to the content of the element where it is declared (including its children elements) and to the attributes of that element.” cheers, -ys From: Philip [mailto:Philip.Oduffy@ul.ie] Sent: Thursday, February 21, 2013 8:30 AM To: public-multilingualweb-lt@w3.org Subject: MT-Confidence Output issue Attributes Hey Guys, I'm having some issues trying to get my parser to output mt-confidence correctly. As far as I'm aware the mt-confidence's data category information is inherited by the textual content of the element, including child elements, but excluding attributes. So in my datacategories-definition.xml I have the following line of code to deal with this: <inheritance appliesTo="onlyElements"/> I end up with the following output for mtconfidence3xml.xml: /text /text/@its:version /text/body[1] /text/body[1]/p[1] /text/body[1]/p[1]/span[1] annotatorsRef="mt-confidence|file:///tools.xml#T1" mtConfidence="0.6982" /text/body[1]/p[1]/span[1]/@its:annotatorsRef /text/body[1]/p[1]/span[1]/@its:mtConfidence /text/body[1]/p[1]/span[2] annotatorsRef="mt-confidence|file:///tools.xml#T2" mtConfidence="0.7982" /text/body[1]/p[1]/span[2]/@its:annotatorsRef /text/body[1]/p[1]/span[2]/@its:mtConfidence /text/body[1]/p[1]/span[3] annotatorsRef="mt-confidence|file:///tools.xml#T3" mtConfidence="0.9982" /text/body[1]/p[1]/span[3]/@its:annotatorsRef /text/body[1]/p[1]/span[3]/@its:mtConfidence /text/body[1]/p[1]/span[4] annotatorsRef="mt-confidence|file:///tools.xml#T4" mtConfidence="0.6982" /text/body[1]/p[1]/span[4]/@its:annotatorsRef /text/body[1]/p[1]/span[4]/@its:mtConfidence However the expected output shows rules on the attributes: /text /text/@its:version /text/body[1] /text/body[1]/p[1] /text/body[1]/p[1]/span[1] annotatorsRef="mt-confidence|file:///tools.xml#T1" mtConfidence="0.6982" /text/body[1]/p[1]/span[1]/@its:annotatorsRef annotatorsRef="mt-confidence|file:///tools.xml#T1" /text/body[1]/p[1]/span[1]/@its:mtConfidence annotatorsRef="mt-confidence|file:///tools.xml#T1" /text/body[1]/p[1]/span[2] annotatorsRef="mt-confidence|file:///tools.xml#T2" mtConfidence="0.7982" /text/body[1]/p[1]/span[2]/@its:annotatorsRef annotatorsRef="mt-confidence|file:///tools.xml#T2" /text/body[1]/p[1]/span[2]/@its:mtConfidence annotatorsRef="mt-confidence|file:///tools.xml#T2" /text/body[1]/p[1]/span[3] annotatorsRef="mt-confidence|file:///tools.xml#T3" mtConfidence="0.9982" /text/body[1]/p[1]/span[3]/@its:annotatorsRef annotatorsRef="mt-confidence|file:///tools.xml#T3" /text/body[1]/p[1]/span[3]/@its:mtConfidence annotatorsRef="mt-confidence|file:///tools.xml#T3" /text/body[1]/p[1]/span[4] annotatorsRef="mt-confidence|file:///tools.xml#T4" mtConfidence="0.6982" /text/body[1]/p[1]/span[4]/@its:annotatorsRef annotatorsRef="mt-confidence|file:///tools.xml#T4" /text/body[1]/p[1]/span[4]/@its:mtConfidence annotatorsRef="mt-confidence|file:///tools.xml#T4" If anyone has any ideas I'd be grateful. Thanks, Philip
Received on Thursday, 21 February 2013 15:47:53 UTC