kavgan / ROUGE-2.0

ROUGE automatic summarization evaluation toolkit. Support for ROUGE-[N, L, S, SU], stemming and stopwords in different languages, unicode text evaluation, CSV output.
https://kavgan.github.io/ROUGE-2.0
Apache License 2.0
209 stars 37 forks source link

Number format exception #25

Closed Soe2Lwin closed 3 years ago

Soe2Lwin commented 4 years ago

I want to specify multiple rouge metrics .therefore, I give ngarm properties like that ngram=L,1,2,SU4. The error occurs "number format exception:", please help me. thank you

Exception in thread "main" java.lang.NumberFormatException: For input string: "L,1,2,SU4" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Integer.parseInt(Integer.java:580) at java.lang.Integer.parseInt(Integer.java:615) at com.rxnlp.tools.rouge.SettingsUtil.loadProps(SettingsUtil.java:62) at com.rxnlp.tools.rouge.SettingsUtil.loadProps(SettingsUtil.java:40) at com.rxnlp.tools.rouge.ROUGECalculator.start(ROUGECalculator.java:92) at com.rxnlp.tools.rouge.ROUGECalculator.main(ROUGECalculator.java:86)

kavgan commented 3 years ago

Is your rouge.type=normal? Also which jar version are you using?

Soe2Lwin commented 3 years ago

yes, rouge type is normal .Now I use rouge2-1.2 version, I can fix this error .thank you for your kind .