rzo1 commented on code in PR #109:
URL: https://github.com/apache/opennlp-sandbox/pull/109#discussion_r1262936338
##########
opennlp-similarity/src/main/java/opennlp/tools/similarity/apps/ContentGeneratorSupport.java:
##########
@@ -77,9 +77,12 @@ public static List<String>
buildSearchEngineQueryFromSentence(String sentence) {
boolean bAccept = true;
for (String w : qs) {
if (w.toLowerCase().equals(w)) // idf
only two words then
- // has to be person name,
- // title or geolocation
+ // has to be person name,
+ // title or geolocation
+ {
bAccept = false;
+ break;
Review Comment:
Missed the outer loop. Nevermind :-)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]