Reimplemented LogPtoProb (which is just an exp10 call)
[vspell.git] / utils / sentence-test.cpp
blob956b2f8adc9e0d7399ef8a2ec3903867cd57f199
1 #include "sentence.h"
2 #include "dictionary.h"
3 #include "wordnode.h"
4 #include <algorithm>
5 #include <iostream>
6 #include <iterator>
8 using namespace std;
10 int main()
12 string str;
14 dic_init();
16 int count = 0;
17 while (getline(cin,str)) {
18 if (++count % 200 == 0) cerr << count << endl;
19 vector<string> output;
20 sentences_split(str,output);
21 copy(output.begin(),output.end(),ostream_iterator<string>(cout,"\n"));
23 return 0;