Python Forum
how to calculate a maximum frequency of theterm in docuemnt
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to calculate a maximum frequency of theterm in docuemnt
#5
(Feb-27-2017, 11:01 AM)zivoni Wrote: But if you want only count of most common word, just use terms[1] with your original terms.

As you say, with his original code, he only has the first item of the most_common list. But that's in the form (word, count), so he wants terms[0] of his original terms to get the most common word.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: how to calculate a maximum frequency of theterm in docuemnt - by ichabod801 - Feb-27-2017, 11:28 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  how to calculate frequency of word in list desul 4 4,451 Feb-28-2017, 03:05 PM
Last Post: wavic

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020