Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

boss_intonation_de.h

Go to the documentation of this file.
00001 /* boss_intonation_de.h    $Revision: 1.2 $ $Date: 2005/12/10 20:33:54 $
00002    Copyright (C) 2002 University of Bonn.
00003    http://www.ikp.uni-bonn.de/boss
00004 
00005    This program is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU General Public License
00007    as published by the Free Software Foundation; either version 2
00008    of the License, or (at your option) any later version.
00009 
00010    This program is distributed in the hope that it will be useful,
00011    but WITHOUT ANY WARRANTY; without even the implied warranty of
00012    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013    GNU General Public License for more details.
00014 
00015    You should have received a copy of the GNU General Public License
00016    along with this program; if not, write to the Free Software
00017    Foundation, Inc., 59 Temple Place - Suite 330,
00018    Boston, MA  02111-1307, USA.
00019 */
00020 
00025 #ifndef BOSS_INTONATION_DE_H
00026 #define BOSS_INTONATION_DE_H
00027 
00028 //#include "dom/DOM.hpp"
00029 #include "boss_utility/dom_tools.h"
00030 #include "boss_intonation.h"
00031 #include "boss_nn.h"
00032 #include <iostream>
00033 #include <string>
00034 #include <fstream>
00035 //#include <stdio.h>
00036 //#include <stdlib.h>
00037 
00043 class BOSS_Intonation_DE : public BOSS_Intonation {
00044 private:
00045   void write_fuji(const xercesc::DOMNode * sentence) const;
00046 
00047 public:
00048   struct t_Set
00049   {
00050     float blf[5];
00051     string syl;
00052     int Stress;
00053     int Word;
00054     float Pos;
00055     float Length;
00056     int PInt;
00057   };
00058   BOSS_NN decide,phrase,accent;
00059   int BLFs;
00060   vector <string> BLFStr;
00061   BOSS_Intonation_DE(BOSS::Config & _cl, MySQL_Handler * _db);
00062   ~BOSS_Intonation_DE();
00063   bool ParseBLF(const string & parse, float blf[5]) const;
00064   virtual void operator () (xercesc::DOMNode* sentence);
00065   string getDescription();
00066 };
00067 
00068 extern "C" BOSS::Module * create(BOSS::Config & _cl, MySQL_Handler * _db) {
00069         return new BOSS_Intonation_DE(_cl, _db);
00070 }
00071 
00072 extern "C" void destroy(BOSS_Intonation_DE * cm) {
00073         delete cm;
00074 }
00075  // end of boss_intonation group
00077 #endif
00078 

Generated on Tue Dec 20 23:14:37 2005 for BOSS by doxygen 1.3.6