Reimplemented LogPtoProb (which is just an exp10 call)
[vspell.git] / utils / lm-test.cpp
blobd8854b24dd920713e11f5260ed8b9e34b8cdb2e8
1 #include "dictionary.h"
2 #include <iostream>
3 #include <string>
5 using namespace std;
7 int main()
9 dic_init();
11 string s;
12 vector<VocabIndex> v;
13 while (cin >> s) {
14 v.push_back(get_ngram()[s]);
16 for (int i = 0;i < v.size(); i ++) {
17 if (i) cout << " ";
18 cout << get_ngram()[v[i]];
20 cout << endl;
21 return 0;