From 41decb9a671e4d0fbbe12533372435ec6ede2246 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. --- verbly/verb.h | 67 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 verbly/verb.h (limited to 'verbly/verb.h') diff --git a/verbly/verb.h b/verbly/verb.h new file mode 100644 index 0000000..42c8dc2 --- /dev/null +++ b/verbly/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