Group Abstract Group Abstract

Message Boards Message Boards

Palindromes, reduplication, and more

Posted 3 years ago

POSTED BY: Chase Marangu
16 Replies
Posted 2 years ago

Hi Chase Marangu. I liked your post, it's nice to read for a newcomer, with all those word clouds. I have a question: I wanted to know if studying computational linguistics or Natural Language Processing in a formal way, like as a Masters or something, would require previous programming experience. Would a person with just basic experience in programming languages find it difficult?

And also, does this field have a good future in terms of a career? Are there decently paying jobs out there in this compling/NLP field?

Thanks!

POSTED BY: Thom M

What does it mean to make a word cloud out of a word square..

wordsquare[s_String] := 
 Module[{n = StringLength[s], c = {{Characters[s]}}, w, m = 1}, 
  w = Characters /@ 
    Select[WordList[], StringMatchQ[#, Repeated[_, {n}]] &];
  NestWhile[computewords[w, n, m++, #] &, c, m < n &]]

computewords[w_, n_Integer, m_Integer, c_List] := 
 Flatten[
  DeleteCases[
   Map[Cases[w, 
      p : Append[#[[All, m + 1]], Repeated[_, {n - m}]] :> 
       Append[#, p]] &, c], {}], 1]

Table[WordCloud[wordsquare["twain"][[i]][[j]]], {i, 1, 
  Length[wordsquare["twain"]]}, {j, 1, 3}]

twain

POSTED BY: Dean Gladish

Do you know to make a word cube? I wanted to add a word cube function to my WordCloud paclet but I couldn't figure it out.

POSTED BY: Peter Burbery
Posted 2 years ago

Peter! Ever since I was a little kid I wanted to know how to make a Word Cube, and ever since WordCloud came out I've been all on it. I don't know. What is a Word Cube, non-quantitatively?

POSTED BY: Updating Name

I know Donald Knuth has created a program to find a word cube but I don't know how to do it in Mathematica. A word cube is like a symmetric tensor of rank 3.

POSTED BY: Peter Burbery

That was a superb exploration we just did and yeah there are so many word cubes, and Donald Knuth made this program to find a word cube. So take a look at WordGraph... how do you get access to the WordCloud paclet? It sort of looks like the perfect repository for word cubes.... what are they? What is the symmetric rank 3 tensor like, Peter?

ListLinePlot[ LowpassFilter[ WordFrequencyData /@ {"mouse", "douse", "house", "louse", "moose", "mousy", "rouse", "souse", "dowse", "horse", "loose", "lousy", "goose", "noose", "mossy", "reuse", "rouge", "route"}, 0.5, 15], Mesh -> { {-2, 0, 2}, {0, 1}}, MeshStyle -> Orange]

Peter Time

Thank you so much for this one in particular, I've been waiting so long for this paclet to come out and now it's finally here!

POSTED BY: Dean Gladish

I found a post that has a program to create a random word cube or square but unfortunately, it doesn't let you specify a word to make a word cube out of.

POSTED BY: Peter Burbery
Posted 2 years ago
POSTED BY: Updating Name

The feature request is issue 2245 on redmine.

POSTED BY: Peter Burbery
POSTED BY: Dean Gladish
Posted 2 years ago
POSTED BY: Chase Marangu

PalindromeQ also works.

POSTED BY: Peter Burbery
Posted 3 years ago

Good point—I think I will edit that in.

POSTED BY: Chase Marangu

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
Posted 3 years ago

Thanks so much!

POSTED BY: Chase Marangu

The only thing that PalindromeQ can't do is find integer palindromes in different bases, for example base 3. Then you have to use IntegerReverse and IntegerDigits to convert to the different base.

I have a feature request I've submitted though to add functionality for integers in different bases.

POSTED BY: Peter Burbery
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard