summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/conformance-checkers/html-its/mtconfidence/html
diff options
context:
space:
mode:
Diffstat (limited to '')
-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
8 files changed, 96 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>