From 8455e8badc80aa018a982102ffff71d5a6b1940c Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Wed, 9 Mar 2016 23:30:14 -0500 Subject: Started verbly rewrite verbly is intended to be a general use natural language generation library. Here, I'm using it to simply generate random verbs or adjectives. A schema for the sqlite database is provided, and for testing I manually added data. A generator program is being written that will generate a database from WordNet, VerbNet, PropBank, and AGID data. --- verb.h | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 verb.h (limited to 'verb.h') diff --git a/verb.h b/verb.h new file mode 100644 index 0000000..42c8dc2 --- /dev/null +++ b/verb.h @@ -0,0 +1,67 @@ +#ifndef VERB_H_BCC929AD +#define VERB_H_BCC929AD + +#include + +namespace verbly { + + /*class frame_part { + + }; + + class frame { + private: + std::list content; + std::map::iterator>> predicates; + + public: + frame(std::list content) : content(content) + { + + } + + std::unique_ptr make_utterance() const + { + + } + };*/ + + enum class conjugation { + present_participle, + past_participle, + infinitive + }; + + class verb { + private: + int id; + + public: + verb(int id) : id(id) + { + + } + + std::string infinitive; + std::string past_tense; + std::string past_participle; + std::string ing_form; + std::string s_form; + //std::vector frames; + + std::string conjugate(conjugation infl) const + { + switch (infl) + { + case conjugation::infinitive: return infinitive; + case conjugation::past_participle: return past_participle; + case conjugation::present_participle: return ing_form; + } + } + }; + +}; + +#include "token.h" + +#endif /* end of include guard: VERB_H_BCC929AD */ -- cgit 1.4.1