ICM Wk8 Data

For this week’s assignment, I tried to count word frequencies in different sources.

I collected two articles authored by two writers from Times website that talks about banks in Japan and the States.

I converted both articles into two text files.

In processing, I used loadStrings to store author A’s article into array of strings#1, and store authorB’s article into array of string#2, and finally created a new array of strings#3 to include the above 2 array of strings.

Use a new String everything to compile array of String #3.

Then, take this new pile of strings apart using split(function) and delimiters.

Next, I created a new IntDict to store concordance of two articles.

Screen Shot 2014-11-03 at 2.26.12 PM

Screen Shot 2014-11-03 at 2.26.33 PM

And this is the word count result:

Screen Shot 2014-11-04 at 12.40.48 AM

 

 

 

 

 

 

 

 

Leave a Reply