Python Forum

Full Version: Comparing two files and word frequency
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,
  I Just registered on the forum and talked to some very helpful people on the irc channel.

Here is what I am trying to accomplish:

1. Able to pick out keyword frequency between two files, meaning one file has a list of keywords and the other file is the output in json or csv pertaining to URL, title, and summary or snippet. All contain some kind of text.
   
I would like to be able to find the all the keywords in the json/csv output that match up with the actual keywords from the keyword file.

Any help or suggestions is highly appreciated. I look forward to leaning a lot of this forum.

Thanks in advanced.
-Nix
You can use nltk
see http://www.nltk.org/book/ch01.html
search on page (verbatim) for 'pair of words and compare their usage in two different texts'
(Feb-02-2017, 05:57 PM)Larz60+ Wrote: [ -> ]You can use nltk
see http://www.nltk.org/book/ch01.html
search on page (verbatim) for 'pair of words and compare their usage in two different texts'

Thanks Ill check it out