From 853687c60477fe35a5971a1b199b24e6e48abf16 Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Thu, 23 Jan 2020 10:58:42 +0100 Subject: [PATCH 1/2] Fix --- TaskE06/description.txt | 13 +++++++++++++ TaskE06/test.exp | 12 ++++++++++++ TaskE06/test.in | 11 +++++++++++ TaskE07/description.txt | 10 ++++++++++ TaskE07/test.exp | 14 ++++++++++++++ TaskE07/test.in | 13 +++++++++++++ blend.sh | 2 +- 7 files changed, 74 insertions(+), 1 deletion(-) create mode 100644 TaskE06/description.txt create mode 100644 TaskE06/test.exp create mode 100644 TaskE06/test.in create mode 100644 TaskE07/description.txt create mode 100644 TaskE07/test.exp create mode 100644 TaskE07/test.in diff --git a/TaskE06/description.txt b/TaskE06/description.txt new file mode 100644 index 0000000..99453f7 --- /dev/null +++ b/TaskE06/description.txt @@ -0,0 +1,13 @@ +Text normalization for a TTS (continued) +======================================= + +The same as in E05 plus: + +- convert numbers 0-999999 into words +- convert "&" into "and" +- convert "+" into "plus +- converting "-", "*", "/" into "minu", "times", "divided by" when with numbers, + "hyphen", "star", "slash" otherwise + +POINTS: 4 +DEADLINE: 2020-01-28 23:59 diff --git a/TaskE06/test.exp b/TaskE06/test.exp new file mode 100644 index 0000000..c84c879 --- /dev/null +++ b/TaskE06/test.exp @@ -0,0 +1,12 @@ +Input string: Output string: i bought twenty-one books from professor smith +Input string: Output string: doctor +Input string: Output string: for example world war the second and other things +Input string: Output string: ninety-nine helium-oxygen balloons +Input string: Output string: four four four +Input string: Output string: nothing to normalize +Input string: Output string: thirteen +Input string: Output string: this one hundred and seven plus thirty-four times three minus four +Input string: Output string: aaa and bbb +Input string: Output string: a slash slash b plus c hyphen d star +Input string: Output string: fifty six thousand five hundred and sixty +Input string: \ No newline at end of file diff --git a/TaskE06/test.in b/TaskE06/test.in new file mode 100644 index 0000000..20a1219 --- /dev/null +++ b/TaskE06/test.in @@ -0,0 +1,11 @@ +I bought 21 books from prof. Smith! +dr. +E.g. World War II, and other things. +99 helium-oxygen balloons +4 4 4 +nothing to normalize +13 +this: 107 + 34 * 3-4 +aaa&bbb +a // b + c - d * +56560 diff --git a/TaskE07/description.txt b/TaskE07/description.txt new file mode 100644 index 0000000..2cda9d0 --- /dev/null +++ b/TaskE07/description.txt @@ -0,0 +1,10 @@ +Text normalization for a TTS (continued) +======================================= + +The same as in E06, plus: + +- convert numbers 0-99999999 into words +- phone number of the form +DD DDD-DDD-DDD should be "read" digit-by-digit, with "0" converted into "oh" + +POINTS: 4 +DEADLINE: 2020-01-28 23:59 diff --git a/TaskE07/test.exp b/TaskE07/test.exp new file mode 100644 index 0000000..87d4fbb --- /dev/null +++ b/TaskE07/test.exp @@ -0,0 +1,14 @@ +Input string: Output string: i bought twenty-one books from professor smith +Input string: Output string: doctor +Input string: Output string: for example world war the second and other things +Input string: Output string: ninety-nine helium-oxygen balloons +Input string: Output string: four four four +Input string: Output string: nothing to normalize +Input string: Output string: thirteen +Input string: Output string: this one hundred and seven plus thirty-four times three minus four +Input string: Output string: aaa and bbb +Input string: Output string: a slash slash b plus c hyphen d star +Input string: Output string: fifty six thousand five hundred and sixty +Input string: Output string: one hundred twenty-three million four hundred fifty-six hundred seven hundred eighty nine +Input string: Output string: four eight five five five four three oh three one two +Input string: \ No newline at end of file diff --git a/TaskE07/test.in b/TaskE07/test.in new file mode 100644 index 0000000..e93fd0a --- /dev/null +++ b/TaskE07/test.in @@ -0,0 +1,13 @@ +I bought 21 books from prof. Smith! +dr. +E.g. World War II, and other things. +99 helium-oxygen balloons +4 4 4 +nothing to normalize +13 +this: 107 + 34 * 3-4 +aaa&bbb +a // b + c - d * +56560 +123456789 ++48 555-430-312 diff --git a/blend.sh b/blend.sh index 3e6147b..ec38ab6 100755 --- a/blend.sh +++ b/blend.sh @@ -19,7 +19,7 @@ cp "${PREFIX}/count-points.pl" arena/ cp "${PREFIX}/overrides.txt" arena/ cp "${PREFIX}/Makefile" arena/ -for TX in X01 X02 X03 X04 X05 X06 X07 X08 B00 B01 B02 B03 B04 B05 B06 C00 C01 C02 C03 C04 C05 C06 E01 E02 E03 E04 E05 # X05 X06 X07 X08 X09 X10 B03 B04 X10 +for TX in X01 X02 X03 X04 X05 X06 X07 X08 B00 B01 B02 B03 B04 B05 B06 C00 C01 C02 C03 C04 C05 C06 E01 E02 E03 E04 E05 E06 E07 # X05 X06 X07 X08 X09 X10 B03 B04 X10 do mkdir -p arena/Task$TX done From 880a1875d1ed8d06dcaf899c01d3863266092cb7 Mon Sep 17 00:00:00 2001 From: Filip Gralinski Date: Thu, 23 Jan 2020 16:26:12 +0100 Subject: [PATCH 2/2] SSS --- TaskX06/description.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TaskX06/description.txt b/TaskX06/description.txt index 91f8ab3..5506e2d 100644 --- a/TaskX06/description.txt +++ b/TaskX06/description.txt @@ -5,4 +5,4 @@ You can assume that only string composed of digits are given on the input. POINTS: 1 -DEADLINE: 2019-12-15 23:59 +DEADLINE: 2019-12-16 23:59