From 0122e63956cc0c88ac9cfa826dcec40e4202ff11 Mon Sep 17 00:00:00 2001 From: Adam Radziszewski <adam.radziszewski@pwr.wroc.pl> Date: Tue, 15 Feb 2011 17:56:54 +0100 Subject: [PATCH] Test for relabel. They will fail since there's no way of writing incomplete tags. To consider and either fix or remove the feature. --- tests/rules-data/relabel-enc/enc.ccl | 7 ++++ tests/rules-data/relabel-enc/enc.out.xml | 43 ++++++++++++++++++++++++ tests/rules-data/relabel-enc/suger.xml | 43 ++++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 tests/rules-data/relabel-enc/enc.ccl create mode 100644 tests/rules-data/relabel-enc/enc.out.xml create mode 100644 tests/rules-data/relabel-enc/suger.xml diff --git a/tests/rules-data/relabel-enc/enc.ccl b/tests/rules-data/relabel-enc/enc.ccl new file mode 100644 index 0000000..6868730 --- /dev/null +++ b/tests/rules-data/relabel-enc/enc.ccl @@ -0,0 +1,7 @@ +rules( + rule("enc_suger", + in({ger,subst}, class[0]), + relabel({ger}, equal(class[0], {subst})) + ) +) + diff --git a/tests/rules-data/relabel-enc/enc.out.xml b/tests/rules-data/relabel-enc/enc.out.xml new file mode 100644 index 0000000..423eb6b --- /dev/null +++ b/tests/rules-data/relabel-enc/enc.out.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE cesAna SYSTEM "xcesAnaIPI.dtd"> +<cesAna xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" type="lex disamb"> +<chunkList> + <chunk> + <chunk type="s"> + <tok> + <orth>Jedzenie</orth> + <lex><base>jedzenie</base><ctag>ger:sg:acc:n</ctag></lex> + <lex><base>jedzenie</base><ctag>ger:sg:nom:n</ctag></lex> + <lex><base>jedzenie</base><ctag>ger:sg:voc:n</ctag></lex> + <lex><base>jeść</base><ctag>ger:sg:acc:n:imperf:aff</ctag></lex> + <lex><base>jeść</base><ctag>ger:sg:nom:n:imperf:aff</ctag></lex> + <lex><base>jeść</base><ctag>ger:sg:voc:n:imperf:aff</ctag></lex> + </tok> + <ns/> + <tok> + <orth>,</orth> + <lex><base>,</base><ctag>interp</ctag></lex> + </tok> + <tok> + <orth>siedzenie</orth> + <lex><base>siedzenie</base><ctag>ger:sg:acc:n</ctag></lex> + <lex><base>siedzenie</base><ctag>ger:sg:nom:n</ctag></lex> + <lex><base>siedzenie</base><ctag>ger:sg:voc:n</ctag></lex> + <lex><base>siedzieć</base><ctag>ger:sg:acc:n:imperf:aff</ctag></lex> + <lex><base>siedzieć</base><ctag>ger:sg:nom:n:imperf:aff</ctag></lex> + <lex><base>siedzieć</base><ctag>ger:sg:voc:n:imperf:aff</ctag></lex> + </tok> + <tok> + <orth>i</orth> + <lex><base>i</base><ctag>conj</ctag></lex> + </tok> + <tok> + <orth>drzewo</orth> + <lex><base>drzewo</base><ctag>subst:sg:acc:n</ctag></lex> + <lex><base>drzewo</base><ctag>subst:sg:nom:n</ctag></lex> + <lex><base>drzewo</base><ctag>subst:sg:voc:n</ctag></lex> + </tok> + </chunk> + </chunk> +</chunkList> +</cesAna> diff --git a/tests/rules-data/relabel-enc/suger.xml b/tests/rules-data/relabel-enc/suger.xml new file mode 100644 index 0000000..84a471b --- /dev/null +++ b/tests/rules-data/relabel-enc/suger.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE cesAna SYSTEM "xcesAnaIPI.dtd"> +<cesAna xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" type="lex disamb"> +<chunkList> + <chunk> + <chunk type="s"> + <tok> + <orth>Jedzenie</orth> + <lex><base>jedzenie</base><ctag>subst:sg:acc:n</ctag></lex> + <lex><base>jedzenie</base><ctag>subst:sg:nom:n</ctag></lex> + <lex><base>jedzenie</base><ctag>subst:sg:voc:n</ctag></lex> + <lex><base>jeść</base><ctag>ger:sg:acc:n:imperf:aff</ctag></lex> + <lex><base>jeść</base><ctag>ger:sg:nom:n:imperf:aff</ctag></lex> + <lex><base>jeść</base><ctag>ger:sg:voc:n:imperf:aff</ctag></lex> + </tok> + <ns/> + <tok> + <orth>,</orth> + <lex><base>,</base><ctag>interp</ctag></lex> + </tok> + <tok> + <orth>siedzenie</orth> + <lex><base>siedzenie</base><ctag>subst:sg:acc:n</ctag></lex> + <lex><base>siedzenie</base><ctag>subst:sg:nom:n</ctag></lex> + <lex><base>siedzenie</base><ctag>subst:sg:voc:n</ctag></lex> + <lex><base>siedzieć</base><ctag>ger:sg:acc:n:imperf:aff</ctag></lex> + <lex><base>siedzieć</base><ctag>ger:sg:nom:n:imperf:aff</ctag></lex> + <lex><base>siedzieć</base><ctag>ger:sg:voc:n:imperf:aff</ctag></lex> + </tok> + <tok> + <orth>i</orth> + <lex><base>i</base><ctag>conj</ctag></lex> + </tok> + <tok> + <orth>drzewo</orth> + <lex><base>drzewo</base><ctag>subst:sg:acc:n</ctag></lex> + <lex><base>drzewo</base><ctag>subst:sg:nom:n</ctag></lex> + <lex><base>drzewo</base><ctag>subst:sg:voc:n</ctag></lex> + </tok> + </chunk> + </chunk> +</chunkList> +</cesAna> -- GitLab