Given a candidate and a reference (both str) pieces, complete the rouge2 function that calculates the score. Return the resulting score, rounded to the third digit.
Tip: A reminder of the necessary equations:
Given a candidate and a reference (both str) pieces, complete the rouge2 function that calculates the score. Return the resulting score, rounded to the third digit.
Tip: A reminder of the necessary equations:
Sample Input 1:
John really loves data science very much and studies it a lot. John very much loves data science and enjoys it a lot.Sample Output 1:
0.476Create a free account to access the full topic