/* Copyright (C) 1997,1998,1999,2000,2001 Franz Josef Och mkcls - a program for making word classes . This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include #include "KategProblem.h" double rhoLo=0.75; #define MAX_VERFAELSCHUNG 5000 double verfTab[MAX_VERFAELSCHUNG],verfTabSigma=-1.0; double verfaelsche(int a,double b) { if( a>=0&&verfTabSigma==b&&a LANGSAMER!!!\n"; } for(i=0;i1 ) { cout << "CRITERION_MY: " << bewertung << endl; cout << "U1:"<<_unigramVerfSum1 << " n:"<0.000001) { if(verboseMode>1 ) cout << " NEU: " <<_nWords*log( u1 * u2 / b ) << endl; bewertung -= _nWords*log( u1 * u2 / b ); if(verboseMode>1) cout << "SCHLUSSBEWERTUNG: " << bewertung << endl; } else cout << "B zu klein " << b << endl; } break; case CRITERION_LO: for(c1=0;c11 ) { cout << "nwords divisor:"<<_nWords << " " << u1 * u2 / b << endl; cout << "ergebnis: "<<_nWords*log( u1 * u2 / b ) << endl; cout << "0: "<