1 /*************************************************************************/
2 /*                                                                       */
3 /*                Centre for Speech Technology Research                  */
4 /*                 (University of Edinburgh, UK)                         */
5 /*                                                                       */
6 /*                         Copyright (c) 2002                            */
7 /*                         All Rights Reserved.                          */
8 /*                                                                       */
9 /*  Permission is hereby granted, free of charge, to use and distribute  */
10 /*  this software and its documentation without restriction, including   */
11 /*  without limitation the rights to use, copy, modify, merge, publish,  */
12 /*  distribute, sublicense, and/or sell copies of this work, and to      */
13 /*  permit persons to whom this work is furnished to do so, subject to   */
14 /*  the following conditions:                                            */
15 /*                                                                       */
16 /*   1. The code must retain the above copyright notice, this list of    */
17 /*      conditions and the following disclaimer.                         */
18 /*   2. Any modifications must be clearly marked as such.                */
19 /*   3. Original authors' names are not deleted.                         */
20 /*   4. The authors' names are not used to endorse or promote products   */
21 /*      derived from this software without specific prior written        */
22 /*      permission.                                                      */
23 /*                                                                       */
24 /*  THE UNIVERSITY OF EDINBURGH AND THE CONTRIBUTORS TO THIS WORK        */
25 /*  DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING      */
26 /*  ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT   */
27 /*  SHALL THE UNIVERSITY OF EDINBURGH NOR THE CONTRIBUTORS BE LIABLE     */
28 /*  FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES    */
29 /*  WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN   */
30 /*  AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,          */
31 /*  ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF       */
32 /*  THIS SOFTWARE.                                                       */
33 /*                                                                       */
34 /*************************************************************************/
35 /*                                                                       */
36 /*                        Author: Rob Clark                              */
37 /*                          Date: April 2005                             */
38 /* --------------------------------------------------------------------- */
39 /*                                                                       */
40 /*                                                                       */
41 /*                                                                       */
42 /*                                                                       */
43 /*          Diphone Coverage stats class                                 */
44 /*                                                                       */
45 /*************************************************************************/
46 
47 #ifndef __EST_DIPHONECOVERAGE_H__
48 #define __EST_DIPHONECOVERAGE_H__
49 
50 #include "EST_THash.h"
51 
52 
53 class EST_DiphoneCoverage {
54 
55  public:
EST_DiphoneCoverage()56   EST_DiphoneCoverage() : strhash(100) {};
57 
58  private:
59   EST_TStringHash<int> strhash;
60 
61  public:
62   void add_stats(const EST_Utterance *utt);
63   void print_stats(const EST_String filename="-");
64 
65 
66 };
67 
68 #endif // __EST_DIPHONECOVERAGE_H__
69