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/noun.h | 55 ------------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 lib/noun.h (limited to 'lib/noun.h') diff --git a/lib/noun.h b/lib/noun.h deleted file mode 100644 index bd71e57..0000000 --- a/lib/noun.h +++ /dev/null @@ -1,55 +0,0 @@ -#ifndef NOUN_H_24A03C83 -#define NOUN_H_24A03C83 - -namespace verbly { - - class noun : public word { - private: - std::string _singular; - std::string _plural; - int _wnid; - - friend class noun_query; - - public: - noun(); - noun(const data& _data, int _id); - - std::string base_form() const; - std::string singular_form() const; - std::string plural_form() const; - int wnid() const; - - bool has_plural_form() const; - - noun_query hypernyms() const; - noun_query full_hypernyms() const; - noun_query hyponyms() const; - noun_query full_hyponyms() const; - noun_query part_meronyms() const; - noun_query full_part_meronyms() const; - noun_query part_holonyms() const; - noun_query full_part_holonyms() const; - noun_query substance_meronyms() const; - noun_query full_substance_meronyms() const; - noun_query substance_holonyms() const; - noun_query full_substance_holonyms() const; - noun_query member_meronyms() const; - noun_query full_member_meronyms() const; - noun_query member_holonyms() const; - noun_query full_member_holonyms() const; - noun_query classes() const; - noun_query instances() const; - noun_query synonyms() const; - noun_query antonyms() const; - adjective_query pertainyms() const; - adjective_query variations() const; - - std::string imagenet_url() const; - - bool operator<(const noun& other) const; - }; - -}; - -#endif /* end of include guard: NOUN_H_24A03C83 */ -- cgit 1.4.1