Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- source = Import[NotebookFileName[], "Plaintext"];
- words = Select[
- StringTrim /@ StringSplit[source, {" ", "[", "]", "\n"}],
- StringLength[#] > 0 &];
- ListPlot[Map[#[[2]] &, SortBy[Tally[words], -#[[2]] &]],
- PlotRange -> All, Joined -> True]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement