転置ã¤ã³ããã¯ã¹ã«ããæ¤ç´¢ã·ã¹ãã ãä½ã£ã¦ã¿ããï¼ 2007-11-26-5 [Algorithm][Programming] 転置ã¤ã³ããã¯ã¹[2007-06-17-6]ã«ããæ¤ç´¢ã·ã¹ãã ã®å®è£ 㯠ããã©ã¼ãã³ã¹ãç¡è¦ããã°æå¤ã¨ç°¡åã§ãã ããã示ãããã« Perl ã§ç°¡åãªæ¤ç´¢ã·ã¹ãã ãä½ã£ã¦ã¿ã¾ããã æ¤ç´¢æ¹å¼ã¯è»¢ç½®ã¤ã³ããã¯ã¹(Inverted Index)ã ã©ã³ãã³ã°ã«ã¯ TF-IDF[2005-10-12-1] ãç¨ãã¾ããã æ¤ç´¢å¯¾è±¡ãã¡ã¤ã«ã¯ä¸è¡ä¸è¨äºã§ä»¥ä¸ã®ãã©ã¼ãããã¨ãã¾ãã [è¨äºID][SPC][è¨äºå 容]\n è¨äºIDã¯æ°åãè¨äºå 容㯠UTF-8 ã®æåã§æ§æããããã®ã¨ãã¾ãã 以ä¸ã®ãããªãµã³ãã« test.txt ãç¨æãã¾ããã 1 ããã¯ãã³ã§ã 2 æè¿ã¯ã©ãã§ããï¼ 3 ãã³ã®ã³å¤§å¥½ã 4 ããã«ã¡ã¯ããããããããã§ããï¼ 5 ããæè¿ç²ã
{{#tags}}- {{label}}
{{/tags}}