diff options
author | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
---|---|---|
committer | Matt A. Tobin <mattatobin@localhost.localdomain> | 2018-02-02 04:16:08 -0500 |
commit | 5f8de423f190bbb79a62f804151bc24824fa32d8 (patch) | |
tree | 10027f336435511475e392454359edea8e25895d /testing/web-platform/tests/conformance-checkers/html-its/mtconfidence | |
parent | 49ee0794b5d912db1f95dce6eb52d781dc210db5 (diff) | |
download | UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.gz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.lz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.tar.xz UXP-5f8de423f190bbb79a62f804151bc24824fa32d8.zip |
Add m-esr52 at 52.6.0
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/mtconfidence')
17 files changed, 210 insertions, 0 deletions
diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence1html.html b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence1html.html new file mode 100644 index 000000000..91f6c3b73 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence1html.html @@ -0,0 +1,15 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Sentences about European capitals.</title> + </head> + <body> + <p> + <span its-mt-confidence="0.8982" its-annotators-ref="mt-confidence|file:///tools.xml#T1"> Dublin is the capital of Ireland.</span> + <span its-mt-confidence="0.8536" its-annotators-ref="mt-confidence|file:///tools.xml#T2"> The capital of the Czech Republic is Prague.</span> + <span its-mt-confidence="0.7982" its-annotators-ref="mt-confidence|file:///tools.xml#T3">Madrid is the capital of Spain.</span> + <span its-mt-confidence="0.9982" its-annotators-ref="mt-confidence|file:///tools.xml#T4">Berlin is the capital of Germany.</span> + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2html.html b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2html.html new file mode 100644 index 000000000..7a57318c0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Sentences about Dublin and Prague MTed from Czech with mtConfidence locally.</title> + <link href="mtconfidence2htmlrules.xml" rel="its-rules"/> + </head> + <body its-annotators-ref="mt-confidence|file:///tools.xml#T0"> + <p> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T1"> Dublin is the capital of Ireland.</span> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T2"> The capital of the Czech Republic is Prague.</span> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T3">Madrid is the capital of Spain.</span> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T4">Berlin is the capital of Germany.</span> + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2htmlrules.xml new file mode 100644 index 000000000..19cb15483 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2htmlrules.xml @@ -0,0 +1,3 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:mtConfidenceRule selector="/h:html/h:body/h:p" mtConfidence="0.8982"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3html.html b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3html.html new file mode 100644 index 000000000..c0f99ac8f --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"/> + <title>Sentences about Dublin and Prague MTed from Czech with mtConfidence locally.</title> + <link href="mtconfidence3htmlrules.xml" rel="its-rules"/> + </head> + <body> + <p> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T1" id="ireland"> Dublin is the capital of Ireland.</span> + <span id="czech"> The capital of the Czech Republic is Prague.</span> + <span id="germany">Berlin is the capital of Germany.</span> + <span id="london">London is the capital of England</span> + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3htmlrules.xml new file mode 100644 index 000000000..f6e20179a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3htmlrules.xml @@ -0,0 +1,5 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:param name="mtParam">ireland</its:param> + <its:mtConfidenceRule selector="/h:html/h:body/h:p/h:span[@id=$mtParam]" + mtConfidence="0.8982"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4html.html b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4html.html new file mode 100644 index 000000000..580aee97c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4html.html @@ -0,0 +1,16 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <meta charset=utf-8> + <title>Example of MT Confidence with annotator references.</title> + <link href="mtconfidence4htmlrules.xml" rel="its-rules"/> + </head> + <body its-annotators-ref="mt-confidence|file:///tools.xml#T1" > + <p its-annotators-ref="text-analysis|file:///tools.xml#T2" > + <span id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span id="spain">Madrid is the capital of Spain.</span> + <span its-annotators-ref="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span id="england">London is the capital of England</span> + </p> +</body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4htmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4htmlrules.xml new file mode 100644 index 000000000..151a0ff17 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4htmlrules.xml @@ -0,0 +1,4 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:mtConfidenceRule selector="/h:html/h:body/h:p/h:span[@id='ireland']" + mtConfidence="0.8982"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence5html.html b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence5html.html new file mode 100644 index 000000000..fe343db0b --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence5html.html @@ -0,0 +1,21 @@ +<!DOCTYPE html> +<html lang=en> + <head> + <meta charset=utf-8> + <title>Sentences about European capitals.</title> + <script type="application/its+xml"> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:h="http://www.w3.org/1999/xhtml" version="2.0"> + <its:param name="mtParam">ireland</its:param> + <its:mtConfidenceRule selector="/h:html/h:body/h:p/h:span[@id=$mtParam]" mtConfidence="0.8982"/> + </its:rules> + </script> + </head> + <body> + <p its-annotators-ref="mt-confidence|file:///tools.xml#T1"> + <span id="ireland"> Dublin is the capital of Ireland.</span> + <span> The capital of the Czech Republic is Prague.</span> + <span>Madrid is the capital of Spain.</span> + <span>Berlin is the capital of Germany.</span> + </p> + </body> +</html> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence1xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence1xml.xml new file mode 100644 index 000000000..c3cdedad0 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence1xml.xml @@ -0,0 +1,22 @@ +<text xmlns:its="http://www.w3.org/2005/11/its"> +<head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:mtConfidenceRule selector="/text/body/p/span[@id='ireland']" + mtConfidence="0.6982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='england']" + mtConfidence="0.7982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='spain']" + mtConfidence="0.8982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='germany']" + mtConfidence="0.8982"/> + </its:rules> +</head> + <body> + <p> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T1" id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T2" id="spain">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T4" id="england">London is the capital of England</span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xml.xml new file mode 100644 index 000000000..2f4941637 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xml.xml @@ -0,0 +1,13 @@ +<text xmlns:its="http://www.w3.org/2005/11/its"> +<head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:type="simple" xlink:href="mtconfidence2xmlrules.xml"/> +</head> + <body> + <p> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T1" id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T2" id="spain">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T4" id="england">London is the capital of England</span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xmlrules.xml new file mode 100644 index 000000000..36b0450b9 --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xmlrules.xml @@ -0,0 +1,10 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:mtConfidenceRule selector="/text/body/p/span[@id='ireland']" + mtConfidence="0.6982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='england']" + mtConfidence="0.7982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='spain']" + mtConfidence="0.8982"/> + <its:mtConfidenceRule selector="/text/body/p/span[@id='germany']" + mtConfidence="0.5982"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence3xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence3xml.xml new file mode 100644 index 000000000..31be4342c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence3xml.xml @@ -0,0 +1,10 @@ +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body> + <p> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T1" its:mtConfidence="0.6982">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T2" its:mtConfidence="0.7982">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" its:mtConfidence="0.9982">Berlin is the capital of Germany.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T4" its:mtConfidence="0.6982">London is the capital of England</span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence4xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence4xml.xml new file mode 100644 index 000000000..04efe69da --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence4xml.xml @@ -0,0 +1,10 @@ +<text xmlns:its="http://www.w3.org/2005/11/its" its:version="2.0"> + <body> + <p> + <its:span annotatorsRef="mt-confidence|file:///tools.xml#T1" mtConfidence="0.9982">Dublin is the capital city of Ireland.</its:span> + <its:span annotatorsRef="mt-confidence|file:///tools.xml#T2" mtConfidence="0.8982">Madrid is the capital of Spain.</its:span> + <its:span annotatorsRef="mt-confidence|file:///tools.xml#T3" mtConfidence="0.7982">Berlin is the capital of Germany.</its:span> + <its:span annotatorsRef="mt-confidence|file:///tools.xml#T4" mtConfidence="0.6982">London is the capital of England</its:span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xml.xml new file mode 100644 index 000000000..3e8484cec --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xml.xml @@ -0,0 +1,13 @@ +<text xmlns:its="http://www.w3.org/2005/11/its"> +<head> + <its:rules xmlns:xlink="http://www.w3.org/1999/xlink" version="2.0" xlink:type="simple" xlink:href="mtconfidence5xmlrules.xml"/> +</head> + <body> + <p> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T1" id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T2" id="spain">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T4" id="england">London is the capital of England</span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xmlrules.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xmlrules.xml new file mode 100644 index 000000000..296ff363a --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xmlrules.xml @@ -0,0 +1,4 @@ + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="mtconfidenceParam">ireland</its:param> + <its:mtConfidenceRule selector="//span[@id=$mtconfidenceParam]" mtConfidence="0.6982"/> + </its:rules> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence6xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence6xml.xml new file mode 100644 index 000000000..c846e6c7c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence6xml.xml @@ -0,0 +1,16 @@ +<text xmlns:its="http://www.w3.org/2005/11/its"> +<head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:param name="mtconfidenceParam">ireland</its:param> + <its:mtConfidenceRule selector="//span[@id=$mtconfidenceParam]" mtConfidence="0.6982"/> + </its:rules> +</head> + <body> + <p> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T1" id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T2" id="spain">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T4" id="england">London is the capital of England</span> + </p> + </body> +</text> diff --git a/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence7xml.xml b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence7xml.xml new file mode 100644 index 000000000..b0d545b8c --- /dev/null +++ b/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence7xml.xml @@ -0,0 +1,16 @@ +<text xmlns:its="http://www.w3.org/2005/11/its"> +<head> + <its:rules xmlns:its="http://www.w3.org/2005/11/its" version="2.0"> + <its:mtConfidenceRule selector="/text/body/p/span[@id='germany']" + mtConfidence="0.8982"/> + </its:rules> +</head> +<body its:annotatorsRef="mt-confidence|file:///tools.xml#T1" > + <p its:annotatorsRef="text-analysis|file:///tools.xml#T2" > + <span id="ireland">Dublin is the capital city of Ireland and has the 50th biggest population density in Europe.</span> + <span id="spain">Madrid is the capital of Spain.</span> + <span its:annotatorsRef="mt-confidence|file:///tools.xml#T3" id="germany">Berlin is the capital of Germany.</span> + <span id="england">London is the capital of England</span> + </p> +</body> +</text>
\ No newline at end of file |