Word frequency: Difference between revisions

Line 2,861:
 
=={{header|Mathematica}} / {{header|Wolfram Language}}==
<lang Mathematica>TakeLargestByTake[Tally@StringCases[ToLowerCaseWordCounts@Import["https://www.gutenberg.org/files/135/135-0.txt",CharacterEncoding->"UTF-8"],RegularExpression@"\\w+"],Last,10] // Dataset</lang>
{{out}}
<pre>
<pre>{{the,41045},{of,19953},{and,14939},{a,14527},{to,13942},{in,11210},{he,9646},{was,8620},{that,7922},{it,6659}}</pre>
the 36661
of 19605
and 14070
a 13474
to 13356
in 10259
was 8545
that 7285
he 6798
had 6140
</pre>
 
=={{header|MATLAB}} / {{header|Octave}}==
Anonymous user