semantic.gv 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. digraph {
  2. 0 [label=Abyssinian];
  3. 1 [label=Angora];
  4. 2 [label=Burmese];
  5. 3 [label=Canada];
  6. 4 [label=Egyptian];
  7. 5 [label=European];
  8. 6 [label=Maltese];
  9. 7 [label=Manx];
  10. 8 [label=Persian];
  11. 9 [label=Siamese];
  12. 10 [label=alley];
  13. 11 [label=blue];
  14. 12 [label=bobcat];
  15. 13 [label=caracal];
  16. 14 [label=cat, color="red"];
  17. 15 [label=common];
  18. 16 [label=cougar];
  19. 17 [label=domestic, color="red"];
  20. 18 [label=gib];
  21. 19 [label=jaguarundi];
  22. 20 [label=jungle];
  23. 21 [label=kaffir];
  24. 22 [label=kitty, color="red"];
  25. 23 [label=leopard];
  26. 24 [label=lynx];
  27. 25 [label=manul];
  28. 26 [label=margay];
  29. 27 [label=mouser];
  30. 28 [label=ocelot];
  31. 29 [label=sand];
  32. 30 [label=serval];
  33. 31 [label=spotted];
  34. 32 [label=tabby];
  35. 33 [label=tiger];
  36. 34 [label=tom];
  37. 35 [label=tortoiseshell];
  38. 36 [label=wildcat, color="red"];
  39. 0 -> 17;
  40. 1 -> 17;
  41. 2 -> 17;
  42. 3 -> 24;
  43. 4 -> 17;
  44. 5 -> 36;
  45. 6 -> 17;
  46. 7 -> 17;
  47. 8 -> 17;
  48. 9 -> 11;
  49. 9 -> 17;
  50. 10 -> 17;
  51. 11 -> 9;
  52. 12 -> 24;
  53. 13 -> 24;
  54. 14 -> 17;
  55. 14 -> 36[color="red", weight=1.0];
  56. 15 -> 24;
  57. 16 -> 36;
  58. 17 -> 0;
  59. 17 -> 1;
  60. 17 -> 2;
  61. 17 -> 4;
  62. 17 -> 6;
  63. 17 -> 7;
  64. 17 -> 8;
  65. 17 -> 9;
  66. 17 -> 10;
  67. 17 -> 14[color="red", weight=1.0];
  68. 17 -> 22;
  69. 17 -> 27;
  70. 17 -> 32;
  71. 17 -> 33;
  72. 17 -> 34;
  73. 17 -> 35;
  74. 18 -> 34;
  75. 19 -> 36;
  76. 20 -> 36;
  77. 21 -> 36;
  78. 22 -> 17[color="red", weight=1.0];
  79. 23 -> 36;
  80. 24 -> 3;
  81. 24 -> 12;
  82. 24 -> 13;
  83. 24 -> 15;
  84. 24 -> 31;
  85. 24 -> 36;
  86. 25 -> 36;
  87. 26 -> 36;
  88. 27 -> 17;
  89. 28 -> 36;
  90. 29 -> 36;
  91. 30 -> 36;
  92. 31 -> 24;
  93. 32 -> 17;
  94. 33 -> 17;
  95. 33 -> 36;
  96. 34 -> 17;
  97. 34 -> 18;
  98. 35 -> 17;
  99. 36 -> 5;
  100. 36 -> 14;
  101. 36 -> 16;
  102. 36 -> 19;
  103. 36 -> 20;
  104. 36 -> 21;
  105. 36 -> 23;
  106. 36 -> 24;
  107. 36 -> 25;
  108. 36 -> 26;
  109. 36 -> 28;
  110. 36 -> 29;
  111. 36 -> 30;
  112. 36 -> 33;
  113. }
  114. /* https://github.com/malwaredllc/semantic-viz
  115. This project visualizes the semantic distance between 2 words in a given hyponym by querying the Wordnet lexical database. Wordnet is a large lexical database of English. Nouns, verbs, adjectives and adverbs are grouped into sets of cognitive synonyms (synsets), each expressing a distinct concept.
  116. Next, the program parses the Wordnet output into an adjacency list representing an undirected graph of the semantic relationships between the words in the given hyponym.
  117. Finally, the shortest path between the source word and target word is computed and visualized for the user (see example screenshot below).
  118. */