home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: Multimed / Multimed.zip / fest-141.zip / festival / testsuite / data / fest2.scm < prev    next >
Text File  |  1999-05-30  |  5KB  |  93 lines

  1. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  2. ;;;                                                                       ;;
  3. ;;;                Centre for Speech Technology Research                  ;;
  4. ;;;                     University of Edinburgh, UK                       ;;
  5. ;;;                       Copyright (c) 1996,1997                         ;;
  6. ;;;                        All Rights Reserved.                           ;;
  7. ;;;                                                                       ;;
  8. ;;;  Permission is hereby granted, free of charge, to use and distribute  ;;
  9. ;;;  this software and its documentation without restriction, including   ;;
  10. ;;;  without limitation the rights to use, copy, modify, merge, publish,  ;;
  11. ;;;  distribute, sublicense, and/or sell copies of this work, and to      ;;
  12. ;;;  permit persons to whom this work is furnished to do so, subject to   ;;
  13. ;;;  the following conditions:                                            ;;
  14. ;;;   1. The code must retain the above copyright notice, this list of    ;;
  15. ;;;      conditions and the following disclaimer.                         ;;
  16. ;;;   2. Any modifications must be clearly marked as such.                ;;
  17. ;;;   3. Original authors' names are not deleted.                         ;;
  18. ;;;   4. The authors' names are not used to endorse or promote products   ;;
  19. ;;;      derived from this software without specific prior written        ;;
  20. ;;;      permission.                                                      ;;
  21. ;;;                                                                       ;;
  22. ;;;  THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK        ;;
  23. ;;;  DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING      ;;
  24. ;;;  ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT   ;;
  25. ;;;  SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE     ;;
  26. ;;;  FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES    ;;
  27. ;;;  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN   ;;
  28. ;;;  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,          ;;
  29. ;;;  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF       ;;
  30. ;;;  THIS SOFTWARE.                                                       ;;
  31. ;;;                                                                       ;;
  32. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  33. ;;;  Some specific tokens etc that might cause problems
  34.  
  35. (require 'festtest)
  36.  
  37. ;;; Test the tokenization
  38. (test_words "e.g. 12,000 pounds")
  39. (test_words "It costs $12 million")
  40. (test_words "Prussia's influence (1864-87) will be discussed at a conference
  41.              May 2-10.  Call (203) 450-3343, ($1.43 a minute) for details.")
  42. (test_words "23/06/97 at 03:45")
  43. (test_words "During the 1950's and 60s, 1.45% took AB123.")
  44. ;;; Money, money, money, (must be funny ...)
  45. (test_words "$10, $10,000, $1.00, $1.23, $1.03, $2.56.")
  46. (test_words "HK$100 million, \\10,000, Y1.2345, ú1.23, M$1.03, C$2.56.")
  47. (test_words "A$1.25, ú650.00, C$1.23 billion, Y10,000, #1.23.")
  48. ;;; Various special symbols
  49. (test_words "I think that is No 123.")
  50. (test_words "It was exactly 12:45:23.")
  51. (test_words "The date will be 3/3/04.")
  52. (test_words "Its on the 1st, and 2nd on 185th and Cornell.")
  53. ;;; Fractions 
  54. (test_words "About 2/3 of the stocks increased by more than 1/16%, while the other 1/2 didn't.")
  55. ;;; Abbreviations
  56. (test_words "The U.S. government, EU and NASA are involved.")
  57. ;;; Roman numerals
  58. (test_words "Henry V: Part I Act II Scene XI: Mr X is I believe, V I Lenin, 
  59.              and not Charles I.")
  60. ;;; Saint Street Doctor Drive
  61. (test_words "Dr Taylor is at 12 High St. Edinburgh.")
  62. (test_words "Dr Taylor is at St Andrew's St, Edinburgh.")
  63. (test_words "Dr Taylor is at St Andrew's, St Albans.")
  64. (test_words "Dr Taylor is at Dr Johnson Dr, West Linton.")
  65. (test_words "Dr Taylor is with Dr Black Dr Caley and St Erasmus.")
  66. (test_words "Dr Taylor is at Dr Black Dr near the bus station.")
  67.  
  68. ;; Test the phrase break mechanism
  69. (test_phrases "The man wanted to go for a drive in.")
  70. (test_phrases "The man wanted to go for a drive in the country.")
  71. (test_phrases "The man wanted to go for a drive-in the country.")
  72. (test_phrases "The man wanted to go for a drive--in the country.")
  73. (test_phrases "He gave the big boys' lunch in the park.")
  74. (test_phrases "He gave the `big boys' lunch in the park.")
  75. (test_phrases "That is it---unless you want more.")
  76. (test_phrases "That is it -- unless you want more.")
  77.  
  78. ;; Some tests of utterance/punctuation boundary
  79. (test_segments "They called him Mr. Black though he preferred Alan.")
  80. (test_segments "They called him Mr.  Black was the colour of his beard.")
  81. (test_segments "(They called him Mr.) Black was the colour of his beard.")
  82. (test_segments "The U.S. Secretary didn't arrive in time.")
  83.  
  84. (test_segments "My cat who lives in Edinburgh has nine lives.")
  85.  
  86. ;;; This was showed up different durations on different platforms 
  87. ;;; sees ok now.  Problem was lexicon was in different order 
  88. ;;; (i.e. qsort did different things on different platforms)
  89. (test_segments "Prussia's influence (1864-87) will be discussed at a conference
  90.                 May 2-10.  Call (203) 450-3343, ($1.43 a minute) for details.")
  91.  
  92.  
  93.