lib/trie/double_array.rb at master from tily's ruby-gardening - GitHub Double-Array (ããã«é å) 㯠ãã©ã¤æ¨ãå®è£ ããããã®ã¢ã«ã´ãªãºã ã® 1 ã¤ã§ãä»ã®å®è£ ãããé«éã« TRIE ããæååãæ¤ç´¢ã§ããããããChaSen ã MeCab ã§ãå½¢æ ç´ è§£æãè¡ãããã«å¿ è¦ãª Common-Prefix Search (å ±éæ¥é è¾æ¢ç´¢) ãè¡ãããã«ä½¿ããã¦ããããããç解ã®ããã« Ruby ã§å®è£ ãã¦ã¿ãã åºæ¬çãªåä½ç¢ºèª ããã«æ¸ãã¦ãã bird, bison, cat ã® 3 åèªã§æ§ç¯ãã Double-Array ã®ä¾ã ã³ã¼ãï¼ require 'trie/double_array' da = Trie::DoubleArray.new da.build(%w|bird bison cat
{{#tags}}- {{label}}
{{/tags}}