From eef5de613c75661e5d94baa086f6f2ddc26c7ed0 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Thu, 24 Mar 2016 23:16:07 -0400 Subject: Added verb frames In addition: - Added prepositions. - Rewrote a lot of the query interface. It now, for a lot of relationships, supports nested AND, OR, and NOT logic. - Rewrote the token class. It is now a union-like class instead of being polymorphic, which means smart pointers are no longer necessary. - Querying with regards to word derivation has been temporarily removed. - Sentinel values are now supported for all word types. - The VerbNet data retrieved from http://verbs.colorado.edu/~mpalmer/projects/verbnet/downloads.html was found to not be perfectly satisfactory in some regards, especially regarding adjective phrases. A patch file is now included in the repository describing the changes made to the VerbNet v3.2 download for the canonical verbly datafile. --- lib/frame_query.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 lib/frame_query.h (limited to 'lib/frame_query.h') diff --git a/lib/frame_query.h b/lib/frame_query.h new file mode 100644 index 0000000..dd11d16 --- /dev/null +++ b/lib/frame_query.h @@ -0,0 +1,21 @@ +#ifndef FRAME_QUERY_H_334B9D47 +#define FRAME_QUERY_H_334B9D47 + +namespace verbly { + + class frame_query { + public: + frame_query(const data& _data); + + frame_query& for_verb(const verb& _v); + + std::list run() const; + + private: + const data& _data; + std::list _for_verb; + }; + +}; + +#endif /* end of include guard: FRAME_QUERY_H_334B9D47 */ -- cgit 1.4.1