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')
Given a reference—prediction pair, find the Wordnet synonym match. The starter code is:
# Your imports here
from nltk.translate.meteor_score import wordnetsyn_match
reference = "Adding additional reference translations will increase the BLEU score"
prediction = "Supplying extra reference translations will increment the BLEU score"
# Your code here
The answer should contain the result of the wordnetsyn_match() call on the provided reference—prediction pair.