In <b><i>English</i></b>, there are three articles 'a', 'an' and 'the', each article has some weightage which is given in the file 'articles.txt'. Prepositions are words that give additional meaning to the English Language There are around 80 to 100 prepositions in English. Some of the preposition and a weightage for each of them are given in a file named as 'prepositions.txt. Given a word- matrix of articles and prepositions in a file, design an algorithm and write a C++ code to determine the weight-matrix of the word- matrix given in a file. If a word in the input file is not a word in the given list of articles and preposition then assign its weight to 0. The input is such that at least one entry in the outer rows and columns is 0. If the element at index (0,0) in the …
Comments
Leave a comment