Moving more modules
[apertium.git] / trunk / apertium-tools / apertium-utils / cognate-indux / similarity.h
blob0f61871bd725ec47257e56d58fc38e665c84f734
1 /*
2 * Copyright (C) 2007 Francis Tyers
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 #ifndef __SIMILARITY_H__
21 #define __SIMILARITY_H__
23 #include <fstream>
24 #include <iostream>
25 #include <string>
26 #include <cstdlib>
27 #include <cwctype>
28 #include <vector>
30 using namespace std;
32 int levenshtein_distance (wstring string1, wstring string2);
33 float dice_coefficient (wstring string1, wstring string2);
34 float xdice_coefficient (wstring string1, wstring string2);
35 float xxdice_coefficient (wstring string1, wstring string2);
36 int longest_common_subsequence (wstring string1, wstring string2);
37 float longest_common_subsequence_coefficient (wstring string1, wstring string2);
39 #endif /* __SIMILARITY_H__ */