From 6746da6edd7d9d50efe374eabbb79a3cac882d81 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Mon, 16 Jan 2017 18:02:50 -0500 Subject: Started structural rewrite The new object structure was designed to build on the existing WordNet structure, while also adding in all of the data that we get from other sources. More information about this can be found on the project wiki. The generator has already been completely rewritten to generate a datafile that uses the new structure. In addition, a number of indexes are created, which does double the size of the datafile, but also allows for much faster lookups. Finally, the new generator is written modularly and is a lot more readable than the old one. The verbly interface to the new object structure has mostly been completed, but has not been tested fully. There is a completely new search API which utilizes a lot of operator overloading; documentation on how to use it should go up at some point. Token processing and verb frames are currently unimplemented. Source for these have been left in the repository for now. --- lib/verb_query.h | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 lib/verb_query.h (limited to 'lib/verb_query.h') diff --git a/lib/verb_query.h b/lib/verb_query.h deleted file mode 100644 index 566ae37..0000000 --- a/lib/verb_query.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef VERB_QUERY_H_34E5A679 -#define VERB_QUERY_H_34E5A679 - -namespace verbly { - - class verb_query { - public: - verb_query(const data& _data); - - verb_query& limit(int _limit); - verb_query& random(); - verb_query& except(const verb& _word); - verb_query& rhymes_with(const word& _word); - verb_query& rhymes_with(rhyme _r); - verb_query& has_pronunciation(); - verb_query& has_rhyming_noun(); - verb_query& has_rhyming_adjective(); - verb_query& has_rhyming_adverb(); - verb_query& has_rhyming_verb(); - verb_query& with_stress(filter> _arg); - - verb_query& has_frames(); - - std::list run() const; - - const static int unlimited = -1; - - private: - const data& _data; - int _limit = unlimited; - bool _random = false; - std::list _rhymes; - std::list _except; - bool _has_prn = false; - bool _has_frames = false; - bool _has_rhyming_noun = false; - bool _has_rhyming_adjective = false; - bool _has_rhyming_adverb = false; - bool _has_rhyming_verb = false; - filter> _stress; - }; - -}; - -#endif /* end of include guard: VERB_QUERY_H_34E5A679 */ -- cgit 1.4.1