Question: 1. Project Definition You are expected to write a c++ console application that reads and counts unique words used in documents: articles, chapters, books about

 1. Project Definition You are expected to write a c++ console

application that reads and counts unique words used in documents: articles, chapters,

books about Applied Sciences, Mathematics, Information science published from 1900 to 2021

1. Project Definition You are expected to write a c++ console application that reads and counts unique words used in documents: articles, chapters, books about Applied Sciences, Mathematics, Information science published from 1900 to 2021 and find Top 10 frequent words used in these documents. Articles Dataset.txt file contains all the metadata information of documents. unigramCount contains all unique words and their number of occurrences for each document. There are 1500 publications recorded in the txt file. Find total frequency of all the unigrams used in all publications and print top 10 frequent words in these documents. Here is an example entry for a document: {"creator":["Romain Allais", "Julie Gobert"). "datePublished":"2018-05-30", "docType":"article". "doi":"10.1051Vmattech/2018010", "id":"ark:W27927Vphz1Ohn26h3", "isPartOf":"Mat\u00e9riaux & Techniques", "issueNumber":"5-6","language":["eng"], "outputFormat":["unigram","bigram","trigram"), "pageCount":7, "pagination":"pp. null-null", "provider":"portico", "publication Year":2018, "publisher":"EDP Sciences", "sequence":3.0, "tdm Category":["Applied Sciences - Engineering"], "title":"Environmental assessment of PSS", "url":"http:Wdoi.org/10.1051Vmattech/2018010". "volumeNumber":"105", "wordCount":4446, "unigramCount": {"others":1,"air":1,"networks.":1,"conventional":1,"IEEE":11 } Your program must pull out the unigram counts for each document and store them in a suitable data structure. Stop words A list of stop words is supplied in stopwords.txt file to remove function words (e.g., the, and I, to, of, a) and other common words. You should not count these words. Definition of a word: For simplicity assume that any contiguous block of alphabetic characters (letters from "a" to "z", both upper and lower case) which includes at most one single quotation mark between these letters is a word. According to this definition the following sentence in an article: "if we don't have local agreements settled by Thursday", has the words: "if", "we", "don't", "have", "local", "agreements", "settled", "by", "Thursday". Also note that; to combine the counts of each unigram, you must lowercase all the characters in each string. That means the string "the" and "The" are same. Main Requirements: After reading and processing is over, your program must print top 10 most frequent words used in these documents in descending order. Additionally, the total time elapsed from the beginning of your code to the end of printing top 10 must be calculated and printed at the end of the execution. Here is an example output: Swordl> words> . Sword10> Total Elapsed Time: X seconds Whole application can be implemented with console facilities (you do not need advanced GUI elements). The project consists of two parts. This will be a proper C++ class. You must be able to create many instances of this class. (DO NOT use third-party libraries and C++ STL, Boost etc.) However, you can use. iostream, ctime, fstream, string like IO and string related classes. B. Main program. In the main function, you must create a list of words. And total time should be calculated from starting the preprocessing of data, to the end of Top 10 calculation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!