Skip to content
Tony Lim edited this page Apr 21, 2015 · 4 revisions

Full documentation of classes at here Doxygen Parser Documentation

Usage

Given a sentence in string,

    NLP::Converter converted(sentence); // Passed
    list<NLP::Word> myParsedWords = converted.getWords();

myParsedWords contains list of 'Words' object.

        Word(const Token& other,
             set<WordType> tags,
             set<string> defs = set<string>()
        );
        Word(const Word&   other);
        Word& operator = (const Word& newToken);
        ~Word();
        string        getName()        const;
        set<WordType> getTypes()        const;
        string        getRawtypes()    const;
        set<string>   getDefinitions() const;

        friend ostream& operator << (ostream& outs, const Word& w);

For testcases see Unit-Testing repositories

Clone this wiki locally