|
PLearn 0.1
|

Go to the source code of this file.
Functions | |
| int | main (int argc, char **argv) |
Definition at line 8 of file numeric_filter.cc.
References PLearn::endl(), PLearn::looksNumeric(), and PLERROR.
{
if (argc != 1)
PLERROR("usage : numeric_filter < in.text > filtered_out.text");
string word;
while (true)
{
cin >> word;
if (!cin) break;
if (looksNumeric(word.c_str()))
//cout << "<numeric>" << " : " << word << endl;
cout << "<numeric>" << endl;
else
cout << word << endl;
}
}

1.7.4