Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #2451
| From | Bill Rowe <readnews@sbcglobal.net> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Count Ouccrence of words in a long text |
| Date | 2011-05-18 11:16 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <ir09r4$22e$1@smc.vnet.net> (permalink) |
On 5/17/11 at 7:47 AM, yako@11y11.com (Yako) wrote: >What I need is to be able to count the occurrence of each word of a >text and count the times each word appears on it. I know how to do >this on other languages but I am trying to achieve it with >mathematica. >Can someone hint me the way to go? Tally[ReadList[filename,Word]] will do the trick where filename is the name and extension of the file containing the text and is assumed to be in the current working directory.
Back to comp.soft-sys.math.mathematica | Previous | Next | Find similar | Unroll thread
Re: Count Ouccrence of words in a long text Bill Rowe <readnews@sbcglobal.net> - 2011-05-18 11:16 +0000
csiph-web