Sherlock vs. Watson
Recupere algunas novelas de Arthur Conan Doyle con Sherlock Holmes.
In[1]:=

novels = {Entity["Book", "TheSignOfTheFour1890"], 
   Entity["Book", "TheAdventuresOfSherlockHolmes"], 
   Entity["Book", "TheHoundOfTheBaskervilles"], 
   Entity["Book", "TheReturnOfSherlockHolmes1904"]};In[2]:=

texts = EntityValue[novels, "Plaintext"];Encuentre el número de veces que los dos personajes principales son mencionados.
In[3]:=

counts = WordCounts /@ texts;In[4]:=

watson = counts[[All, "Watson"]];
holmes = counts[[All, "Holmes"]];Grafique los resultados usando la nueva función Callout.
In[5]:=

callouts = 
  Callout @@@ Transpose[{Transpose[{holmes, watson}], novels}];In[6]:=

ListPlot[callouts, AxesLabel -> {"Holmes", "Watson"}, 
 AspectRatio -> Automatic, AxesOrigin -> {0, 0}]Out[6]=





















 
  
  
  
  
  
  
 