summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2017-02-11 12:40:36 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2017-02-11 12:40:36 -0500
commit32f32562c43437dc6b43aa81b4ed22c83e14739b (patch)
treedca077b05c65f4bfbf63971875f3f2188f59dd60
parentb2c88e69fe8dc65752d0153944470b5184668ec1 (diff)
downloadadvice-32f32562c43437dc6b43aa81b4ed22c83e14739b.tar.gz
advice-32f32562c43437dc6b43aa81b4ed22c83e14739b.tar.bz2
advice-32f32562c43437dc6b43aa81b4ed22c83e14739b.zip
Fixed sentences only using top level nouns
-rw-r--r--sentence.cpp2
1 files changed, 1 insertions, 1 deletions
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(
251 251
252 if (selection.compact().getType() != verbly::filter::type::empty) 252 if (selection.compact().getType() != verbly::filter::type::empty)
253 { 253 {
254 condition &= std::move(selection); 254 condition &= (verbly::notion::fullHypernyms %= std::move(selection));
255 } else if (role == "Attribute") 255 } else if (role == "Attribute")
256 { 256 {
257 condition &= (verbly::notion::fullHypernyms %= (verbly::notion::wnid == 100024264)); // attribute 257 condition &= (verbly::notion::fullHypernyms %= (verbly::notion::wnid == 100024264)); // attribute