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.cpp | 64 ------------------------------------------------------------ 1 file changed, 64 deletions(-) delete mode 100644 lib/verb.cpp (limited to 'lib/verb.cpp') diff --git a/lib/verb.cpp b/lib/verb.cpp deleted file mode 100644 index 1f45d53..0000000 --- a/lib/verb.cpp +++ /dev/null @@ -1,64 +0,0 @@ -#include "verbly.h" - -namespace verbly { - - verb::verb() - { - - } - - verb::verb(const data& _data, int _id) : word(_data, _id) - { - - } - - std::string verb::base_form() const - { - assert(_valid == true); - - return _infinitive; - } - - std::string verb::infinitive_form() const - { - assert(_valid == true); - - return _infinitive; - } - - std::string verb::past_tense_form() const - { - assert(_valid == true); - - return _past_tense; - } - - std::string verb::past_participle_form() const - { - assert(_valid == true); - - return _past_participle; - } - - std::string verb::ing_form() const - { - assert(_valid == true); - - return _ing_form; - } - - std::string verb::s_form() const - { - assert(_valid == true); - - return _s_form; - } - - frame_query verb::frames() const - { - assert(_valid == true); - - return _data->frames().for_verb(*this); - } - -}; -- cgit 1.4.1