Skip to main content
. 2023 Mar 27;9(4):77. doi: 10.3390/jimaging9040077
Algorithm 2 News similarity evaluation using NLI.

Input: news information n, web scraping result w, language of the search l.

Output: similarity estimation for the news pair.

  • 1:

    function nli_news_similarity(n,w,l)

  • 2:

         news_pair_similarity=XNLI-RoBERTa(n,w)

  • 3:

         return news_pair_similarity

  • 4:

    end function