Complete the provided function to calculate the METEOR score. meteor() accepts the specified set of parameters and should return the final METEOR score, rounded up to the 3rd decimal. Do not make the meteor() function call or print any values.
Parameter description:
-
match_count- the number of mapped unigrams between the reference and the candidate (denoted as in the theory); -
prediction_len,reference_len- the unigram counts in the prediction and in the reference (denoted as and ); -
chunk_count- the number of matching chunks (denoted as in the theory); -
alpha,beta,gamma- correspond to the , and definitions.