Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #2451 > unrolled thread

Re: Count Ouccrence of words in a long text

Started byBill Rowe <readnews@sbcglobal.net>
First post2011-05-18 11:16 +0000
Last post2011-05-18 11:16 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: Count Ouccrence of words in a long text Bill Rowe <readnews@sbcglobal.net> - 2011-05-18 11:16 +0000

#2451 — Re: Count Ouccrence of words in a long text

FromBill Rowe <readnews@sbcglobal.net>
Date2011-05-18 11:16 +0000
SubjectRe: Count Ouccrence of words in a long text
Message-ID<ir09r4$22e$1@smc.vnet.net>
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.

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web