From e1fa4a088dd95caef22045f905a9d5d22b71bef0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 24 Jan 2017 21:50:39 -0500 Subject: Whitespace changes --- generator/generator.h | 108 +++++++++++++++++++++++++------------------------- 1 file changed, 54 insertions(+), 54 deletions(-) (limited to 'generator/generator.h') diff --git a/generator/generator.h b/generator/generator.h index c829c21..8352693 100644 --- a/generator/generator.h +++ b/generator/generator.h @@ -16,17 +16,17 @@ #include "frame.h" namespace verbly { - + enum class part_of_speech; class selrestr; - + namespace generator { - + class generator { public: - + // Constructor - + generator( std::string verbNetPath, std::string agidPath, @@ -34,95 +34,95 @@ namespace verbly { std::string cmudictPath, std::string imageNetPath, std::string outputPath); - + // Action - + void run(); - + private: - + // Subroutines - + void readWordNetSynsets(); - + void readAdjectivePositioning(); - + void readImageNetUrls(); - + void readWordNetSenseKeys(); - + void readVerbNet(); - + void readAgidInflections(); - + void readPrepositions(); - + void readCmudictPronunciations(); - + void writeSchema(); - + void dumpObjects(); - + void readWordNetAntonymy(); - + void readWordNetVariation(); - + void readWordNetClasses(); - + void readWordNetCausality(); - + void readWordNetEntailment(); - + void readWordNetHypernymy(); - + void readWordNetInstantiation(); - + void readWordNetMemberMeronymy(); - + void readWordNetPartMeronymy(); - + void readWordNetSubstanceMeronymy(); - + void readWordNetPertainymy(); - + void readWordNetSpecification(); - + void readWordNetSimilarity(); - + // Helpers - + std::list readFile(std::string path); - + inline part_of_speech partOfSpeechByWnid(int wnid); - + notion& createNotion(part_of_speech partOfSpeech); - + notion& lookupOrCreateNotion(int wnid); - + lemma& lookupOrCreateLemma(std::string base_form); - + form& lookupOrCreateForm(std::string text); - + template word& createWord(Args&&... args); - + group& createGroup(xmlNodePtr top); - + selrestr parseSelrestr(xmlNodePtr top); - + // Input - + std::string verbNetPath_; std::string agidPath_; std::string wordNetPath_; std::string cmudictPath_; std::string imageNetPath_; - + // Output - + database db_; - + // Data - + std::list notions_; std::list words_; std::list lemmas_; @@ -130,22 +130,22 @@ namespace verbly { std::list pronunciations_; std::list frames_; std::list groups_; - + // Indexes - + std::map notionByWnid_; std::map> wordsByWnid_; std::map, word*> wordByWnidAndWnum_; std::map> wordsByBaseForm_; std::map lemmaByBaseForm_; std::map formByText_; - + // Caches - + std::map wnSenseKeys_; - + }; - + }; }; -- cgit 1.4.1