Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

full_filter.cc File Reference

#include <plearn/base/general.h>
#include <plearn_learners/language/WordNet/WordNetOntology.h>
#include <plearn/io/TypesNumeriques.h>
#include <plearn/base/stringutils.h>

Include dependency graph for full_filter.cc:

Include dependency graph

Go to the source code of this file.

Functions

set< stringextractWordSet (string file)
bool isPunctuation (string &word)
int main (int argc, char **argv)

Variables

set< stringproper_nouns
set< stringstop_words
WordNetOntology wn


Function Documentation

set<string> extractWordSet string  file  ) 
 

Definition at line 14 of file full_filter.cc.

References PLearn::pgetline().

bool isPunctuation string word  ) 
 

Definition at line 28 of file full_filter.cc.

References isAlpha().

int main int  argc,
char **  argv
 

Definition at line 38 of file full_filter.cc.

References PLearn::endl(), extractWordSet(), PLearn::WordNetOntology::isInWordNet(), isPunctuation(), PLearn::looksNumeric(), PLearn::lowerstring(), NUMERIC_TAG, PLERROR, PROPER_NOUN_TAG, proper_nouns, PUNCTUATION_TAG, and wn.


Variable Documentation

set<string> proper_nouns
 

Definition at line 10 of file full_filter.cc.

Referenced by main().

set<string> stop_words
 

Definition at line 11 of file full_filter.cc.

Referenced by main().

WordNetOntology wn
 

Definition at line 12 of file full_filter.cc.

Referenced by main().


Generated on Tue Aug 17 16:15:12 2004 for PLearn by doxygen 1.3.7