1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>class Dictionary</TITLE>
<META NAME="GENERATOR" CONTENT="DOC++ 3.4.8">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H2>class <A HREF="#DOC.DOCU">Dictionary</A></H2></H2><BLOCKQUOTE>This class contains the dictionary of accepted words for a speech recognition experiment, such as the one used by SpeechHMM.</BLOCKQUOTE>
<HR>
<H2>Inheritance:</H2>
<APPLET CODE="ClassGraph.class" WIDTH=600 HEIGHT=65>
<param name=classes value="CObject,MObject.html,CDictionary,MDictionary.html">
<param name=before value="M,M">
<param name=after value="Md_,M">
<param name=indent value="0,1">
<param name=arrowdir value="down">
</APPLET>
<HR>
<DL>
<P><DL>
<DT><H3>Public Fields</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int** <B><A HREF="#DOC.90.1">words</A></B>
<DD><I>the vector of words, which are represented by vectors of phonemes</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int* <B><A HREF="#DOC.90.2">word_length</A></B>
<DD><I>the length of each word (number of phonemes)</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.90.3">n_words</A></B>
<DD><I>the number of words in the dictionary</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>char** <B><A HREF="#DOC.90.4">words_string</A></B>
<DD><I>for each word, the literal transcription</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.90.5">silence_word</A></B>
<DD><I>the index of the "silence" word</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>char** <B><A HREF="#DOC.90.6">phonemes</A></B>
<DD><I>the phonemes</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>int <B><A HREF="#DOC.90.7">n_phonemes</A></B>
<DD><I>the number of different phonemes</I>
</DL></P>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.90.8">Dictionary</A></B>()
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif> <B><A HREF="#DOC.90.9">Dictionary</A></B>(char* filename, char** <!1><A HREF="Dictionary.html#DOC.90.6">phonemes</A>, int <!1><A HREF="Dictionary.html#DOC.90.7">n_phonemes</A>)
<DD><I>creates a Dictionary given a filename containing the words, as well as a vector of phonemes</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual int <B><A HREF="#DOC.90.10">findWord</A></B>(char* word)
<DD><I>this methods return the index of the given word, if found</I>
<DT>
<IMG ALT="[more]" BORDER=0 SRC=icon1.gif>virtual int <B><A HREF="#DOC.90.11">findPhoneme</A></B>(char* phoneme)
<DD><I>this methods return the index of the given phoneme, if found</I>
</DL></P>
</DL>
<HR><H3>Inherited from <A HREF="Object.html">Object</A>:</H3>
<DL>
<P><DL>
<DT><H3>Public Methods</H3><DD><DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>init</B>()
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>addOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, int size, void* <!1><A HREF="Vec.html#DOC.81.3">ptr</A>, const char* <!1><A HREF="CmdLine.html#DOC.7.3">help</A>="", bool is_allowed_after_init=false)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>addIOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, int* <!1><A HREF="Vec.html#DOC.81.3">ptr</A>, int init_value, const char* <!1><A HREF="CmdLine.html#DOC.7.3">help</A>="", bool is_allowed_after_init=false)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>addROption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, real* <!1><A HREF="Vec.html#DOC.81.3">ptr</A>, real init_value, const char* <!1><A HREF="CmdLine.html#DOC.7.3">help</A>="", bool is_allowed_after_init=false)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>addBOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, bool* <!1><A HREF="Vec.html#DOC.81.3">ptr</A>, bool init_value, const char* <!1><A HREF="CmdLine.html#DOC.7.3">help</A>="", bool is_allowed_after_init=false)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, void* <!1><A HREF="Vec.html#DOC.81.3">ptr</A>)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setIOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, int option)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setROption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, real option)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>setBOption</B>(const char* <!1><A HREF="SeqExample.html#DOC.107.9">name</A>, bool option)
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>loadFILE</B>(FILE* <!1><A HREF="Measurer.html#DOC.30.2">file</A>)
<DT>
<IMG ALT="o" SRC=icon2.gif>virtual void <B>saveFILE</B>(FILE* <!1><A HREF="Measurer.html#DOC.30.2">file</A>)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>load</B>(const char* filename)
<DT>
<IMG ALT="o" SRC=icon2.gif>void <B>save</B>(const char* filename)
</DL></P>
</DL>
<A NAME="DOC.DOCU"></A>
<HR>
<H2>Documentation</H2>
<BLOCKQUOTE>This class contains the dictionary of accepted words for
a speech recognition experiment, such as the one used by SpeechHMM.
It contains a list of words, each word being a list of phonemes.
<P></BLOCKQUOTE>
<DL>
<A NAME="words"></A>
<A NAME="DOC.90.1"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int** words</B></TT>
<DD>the vector of words, which are represented by vectors of phonemes
<DL><DT><DD></DL><P>
<A NAME="word_length"></A>
<A NAME="DOC.90.2"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int* word_length</B></TT>
<DD>the length of each word (number of phonemes)
<DL><DT><DD></DL><P>
<A NAME="n_words"></A>
<A NAME="DOC.90.3"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int n_words</B></TT>
<DD>the number of words in the dictionary
<DL><DT><DD></DL><P>
<A NAME="words_string"></A>
<A NAME="DOC.90.4"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>char** words_string</B></TT>
<DD>for each word, the literal transcription
<DL><DT><DD></DL><P>
<A NAME="silence_word"></A>
<A NAME="DOC.90.5"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int silence_word</B></TT>
<DD>the index of the "silence" word
<DL><DT><DD></DL><P>
<A NAME="phonemes"></A>
<A NAME="DOC.90.6"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>char** phonemes</B></TT>
<DD>the phonemes
<DL><DT><DD></DL><P>
<A NAME="n_phonemes"></A>
<A NAME="DOC.90.7"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>int n_phonemes</B></TT>
<DD>the number of different phonemes
<DL><DT><DD></DL><P>
<A NAME="Dictionary"></A>
<A NAME="DOC.90.8"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Dictionary()</B></TT>
<DL><DT><DD></DL><P>
<A NAME="Dictionary"></A>
<A NAME="DOC.90.9"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B> Dictionary(char* filename, char** <!1><A HREF="Dictionary.html#DOC.90.6">phonemes</A>, int <!1><A HREF="Dictionary.html#DOC.90.7">n_phonemes</A>)</B></TT>
<DD>creates a Dictionary given a filename containing the words, as well
as a vector of phonemes
<DL><DT><DD></DL><P>
<A NAME="findWord"></A>
<A NAME="DOC.90.10"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual int findWord(char* word)</B></TT>
<DD>this methods return the index of the given word, if found
<DL><DT><DD></DL><P>
<A NAME="findPhoneme"></A>
<A NAME="DOC.90.11"></A>
<DT><IMG ALT="o" BORDER=0 SRC=icon2.gif><TT><B>virtual int findPhoneme(char* phoneme)</B></TT>
<DD>this methods return the index of the given phoneme, if found
<DL><DT><DD></DL><P></DL>
<HR><DL><DT><B>This class has no child classes.</B></DL>
<DL><DT><DT><B>Author:</B><DD>Samy Bengio (bengio@idiap.ch)
<DD></DL><P><P><I><A HREF="index.html">Alphabetic index</A></I> <I><A HREF="HIER.html">HTML hierarchy of classes</A> or <A HREF="HIERjava.html">Java</A></I></P><HR>
<BR>
This page was generated with the help of <A HREF="http://docpp.sourceforge.net">DOC++</A>.
</BODY>
</HTML>
|