summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/conformance-checkers/html-its/mtconfidence')
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence1html.html15
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2html.html16
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence2htmlrules.xml3
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3html.html16
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence3htmlrules.xml5
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4html.html16
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence4htmlrules.xml4
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html/mtconfidence5html.html21
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence1xml.xml22
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xml.xml13
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence2xmlrules.xml10
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence3xml.xml10
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence4xml.xml10
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xml.xml13
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence5xmlrules.xml4
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence6xml.xml16
-rw-r--r--testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/xml/mtconfidence7xml.xml16
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 0000000000..0147866fd9
--- /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 0000000000..cc943148cc
--- /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 0000000000..19cb15483f
--- /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 0000000000..e3edfbdf32
--- /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 0000000000..f6e20179a1
--- /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 0000000000..1fe4b6465c
--- /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 0000000000..151a0ff17d
--- /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 0000000000..fe343db0be
--- /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 0000000000..c3cdedad0a
--- /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 0000000000..2f49416377
--- /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 0000000000..36b0450b96
--- /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 0000000000..31be4342c9
--- /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 0000000000..04efe69da1
--- /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 0000000000..3e8484cec6
--- /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 0000000000..296ff363ac
--- /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 0000000000..c846e6c7c0
--- /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 0000000000..b0d545b8cf
--- /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