From 32f32562c43437dc6b43aa81b4ed22c83e14739b Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 11 Feb 2017 12:40:36 -0500 Subject: Fixed sentences only using top level nouns --- sentence.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sentence.cpp b/sentence.cpp index 1ae6563..e36f660 100644 --- a/sentence.cpp +++ b/sentence.cpp @@ -251,7 +251,7 @@ verbly::word sentence::generateStandardNoun( if (selection.compact().getType() != verbly::filter::type::empty) { - condition &= std::move(selection); + condition &= (verbly::notion::fullHypernyms %= std::move(selection)); } else if (role == "Attribute") { condition &= (verbly::notion::fullHypernyms %= (verbly::notion::wnid == 100024264)); // attribute -- cgit 1.4.1