New in Wolfram Mathematica 6: Load-on-Demand Curated Data | ◄ previous | next ► |
Build Up Semantic Networks
Mathematica 6 lets you compute with word semantics, here building up a two-step synonym graph.
In[1]:= | GraphPlot[ Flatten[Rest[ NestList[ Union[Flatten[ Thread[# -> WordData[#, "Synonyms", "List"]] & /@ Last /@ #]] &, {"" -> "ship"}, 2]]], VertexLabeling -> True, DirectedEdges -> True] |
Out[1]= |