diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-11 12:40:36 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2017-02-11 12:40:36 -0500 |
commit | 32f32562c43437dc6b43aa81b4ed22c83e14739b (patch) | |
tree | dca077b05c65f4bfbf63971875f3f2188f59dd60 | |
parent | b2c88e69fe8dc65752d0153944470b5184668ec1 (diff) | |
download | advice-32f32562c43437dc6b43aa81b4ed22c83e14739b.tar.gz advice-32f32562c43437dc6b43aa81b4ed22c83e14739b.tar.bz2 advice-32f32562c43437dc6b43aa81b4ed22c83e14739b.zip |
Fixed sentences only using top level nouns
-rw-r--r-- | sentence.cpp | 2 |
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 |