Question: help peusdocode: Given an article such as this one at design an algorithm to find the top 150 most frequently co-occurring word-pairs in this article.
help peusdocode:

Given an article such as this one at design an algorithm to find the top 150 most frequently co-occurring word-pairs in this article. Two words are said to co-occur if they appear in the same sentence. For example, the last sentence in this article "It's really a milestone in Chinese science fiction." contain the following word pairs: ('It's', 'really') ('It's', 'a') ('It's', 'milestone') ('It's', 'in') ('It's', 'Chinese') ('It's', 'science') ('It's', 'fiction') ('really', 'a') ('really', 'milestone') ('really', 'in') ('really', 'Chinese') ('really', 'science') ('really', 'fiction') ('a', 'milestone') ('a', 'in') ('a', 'Chinese') ('a', 'science') ('a', 'fiction') ('milestone', 'in') ('milestone', Chinese') ('milestone', science') ('milestone', 'fiction') ('in', 'science') ('in', 'fiction') ('Chinese', 'science') ('Chinese', 'fiction') ('science', 'fiction') you can assume you have access to a subroutine, sentenceSplitter(article), that can accurately segment an article into separate sentences and return these sentences in an array-like structure. You can also assume that you have access to another routine tokenizer (sentence), that can accurately identify the individual words contained in the input sentence and return these words in another array-like data structure
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
