Then, the co-occurrences of n-grams in the reference sentences and candidate sentence are calculated.
the distance between word i and word j in two documents is set as the Euclidean distance between each of the corresponding word2vec embeddings The distances between words serve as building blocks to define distances between documents, hence captions.