kinow commented on code in PR #99:
URL: https://github.com/apache/opennlp-sandbox/pull/99#discussion_r1167978044
##########
summarizer/src/main/java/opennlp/summarization/meta/MetaSummarizer.java:
##########
@@ -115,12 +115,10 @@ public List<Score> rankSentences(String article,
List<Sentence> sent, int maxWor
}
//Default Summarization using only lexical chains..
- public String summarize(String article, int maxWords)
- {
+ public String summarize(String article, int maxWords) {
//Build lexical Chains..
List<Sentence> sent = dp.getSentencesFromStr(article);
-
- List<Score>finalSc = rankSentences(article, sent, maxWords);
+ List<Score> finalSc = rankSentences(article, sent, maxWords);
Review Comment:
>It compiles fine. Yet, we both agree it's totally odd to our eyes.
>Investigating at
https://docs.oracle.com/javase/specs/jls/se11/html/index.html to find out why,
for variables declared with use of generics, no space is required. Maybe, it is
just a "feature" since generics were introduced in Java.
#TodayILearned! Thanks @mawiesne !!!
--
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]