Note that this task assumes
nltk version 3.8.1. Don't forget to download the required corpora:
import nltk
nltk.download('punkt')
nltk.download('wordnet')
Calculate the METEOR score for the given prediction—reference pair:
reference = "The pine forest was a sea of swaying trees."
prediction = "The tall pine trees swayed in the breeze."
Recall should be weighted 7 times more than precision. Keep other parameters to their default values. The result should contain the obtained score, rounded up to the 3rd decimal.