Locality Sensitive Hashã試ãã¦ã¿ã
- ä½è : arton,æ¡ç°èª ,è§ç°ç´è¡,åç°å人,ä¼è¤ç´ä¹,西ç°åä»,岡éå大è¼,縣ä¿è²´,大å¡ç¥æ´,nanto_vi,徳永æä¹,å±±æ¬é½å¹³,ç°ä¸æ´ä¸é,ä¸å²¡ç§å¹¸,ããã¯,æ¦è æ¶ç´,é«æå²,å°é£¼å¼¾,ã¯ã¾ã¡ã2,WEB+DB PRESSç·¨éé¨
- åºç社/ã¡ã¼ã«ã¼: æè¡è©è«ç¤¾
- çºå£²æ¥: 2009/02/23
- ã¡ãã£ã¢: 大åæ¬
- è³¼å ¥: 10人 ã¯ãªãã¯: 373å
- ãã®ååãå«ãããã° (45件) ãè¦ã
Web+DB Pressã®ã¬ã³ã¡ã³ãç¹éã«è¼ã£ã¦ããLocality Sensitive Hashã試ãã¦ã¿ã¾ããããã¾ãããç解ã§ãã¦ãªãã®ã§ééã£ã¦ããããããã¾ãããããã£ãããªã®ã§ããã°ã«æ¸ãã¦ããã¾ãã
ä½æããã³ã¼ãã¯ä»¥ä¸ã«ç½®ãã¦ããã¾ãã
ãã ããè¨äºä¸ã§ã¯ã©ã³ãã ã«é¸æãããã¯ãã«ãå¹³å0ãåæ£1ã®æ£è¦åå¸ã«å¾ã£ã¦çæããããæ¸ããã¦ãã¾ããããããã§ã¯å ¥åããããã¯ãã«ç¾¤ã®ä¸ããã©ã³ãã ã«é¸æããããã«ãã¡ãã£ã¦ã¾ãããªã®ã§é¸æããããã¯ãã«ã«åããçããå ´åããããããé©åãªçµæãå¾ãããªãå¯è½æ§ãããã¾ãã
ã¾ãããããã¯ãã«ã®æ·»åãã·ã£ããã«ããæã«è¿ä¼¼å¼ã«ããè¨ç®ããããã«æ¸ããã¦ãã¾ããããä¸è¨ã®ããã°ã©ã ã§ã¯æ®éã«ãªã¹ããã·ã£ããã«ãã¦ãã ãã§ããããã¯å¤åçµæã«ã¯å½±é¿ããªãã¨æãã¾ããã
ãã¦å®éã«è©¦ãã¦ã¿ããã¨æãã¾ããå ¥åã«ã¯ã以åä½æããWikipediaã®åãã¼ã¯ã¼ãã®TFIDFã«ããç¹å¾´ãã¯ãã«DBMã使ãã¾ãã(ãã ãã¯ã¼ãã¨ãã¤ã³ãã®éã®åºåãæåã¯ã³ãã³ããã¿ãã«å¤æ´ãããã®ã使ç¨ãã¦ãã¾ã)
% tchmgr list -pv tfidf_tab.hdb | head -1 å®äºèª æ æ ç» 847 ããã ã»ãã¡ã¼ã¹ããããã¯ã·ã§ã³ 777 å¹´ 744 ããã¹ 666 ã·ã³ 569 - 538 1992 501 ç¹æ 494 å 482 æ 459 åºèº« 450 å±±æ¬ 428 è¡æ¶² 390 å®äº 375 æ±äº¬ 355 èª 351 å½¹ 327 1975 326 ãµãã«ã¼ 305 æ¥é 300 æ 297 11 291 O 291 CM 291 ä¿³åª 289 1 280 ããã¥ã¼ 270 * 252 åºæ¼ 251 æ¥ 249 ãã©ã 249 æå± 247 é½ 246 éç 245 æ°ã 243 2 225 ã¾ã 225 d
ã§ã¯å®éã«åããã¦ã¿ã¾ããã¨ããããã©ã³ãã é¸æãããã¯ãã«ã®æ°ã¯10åãããããã¯ãã«ã®æ·»åãã·ã£ããã«ããåæ°ã¯5åã§ãã³ãµã¤ã³é¡ä¼¼åº¦ã0.7以ä¸ã®ãã¢ã ããåºåããããã«ãã¦ãã¾ããé©å½ã«é¸ãã æ°åã§ãããå®éã¯ã©ããããã®å¤ãä¸çªãããããªãã§ãããï¼
% ./lsh.pl tfidf_tab.hdb out.txt Select random vectors Calculate bits Loop No.0 Shuffle bits Get similar keys Loop No.1 Shuffle bits Get similar keys Loop No.2 Shuffle bits Get similar keys Loop No.3 Shuffle bits Get similar keys Loop No.4 Shuffle bits Get similar keys
ã´ãã£ã½ãèªãå¤ãã¦çµæãè¦ã¦ã¿ã¾ãã
% sort -t " " -k 3 -g -r out.txt | grep -v "ãã¡ã¤ã«:" | grep -v "Template:" | grep -v "Category:" | grep -v "Portal:" | head 人åä¸è¦§ 㫠人åä¸è¦§ ã 1 人åä¸è¦§ ã 人åä¸è¦§ 㨠1 IATA空港ã³ã¼ãã®ä¸è¦§/M IATA空港ã³ã¼ãã®ä¸è¦§/S 1 IATA空港ã³ã¼ãã®ä¸è¦§/G IATA空港ã³ã¼ãã®ä¸è¦§/Z 1 ED14 ED15 1 ED12 ED17 1 ㄽ ㅄ 1 è °å¤å´æ¨ªçªéç è °å å´æ¨ªçªéç 0.994469509662891 æ¥åçæ çæ 0.992928087585636 çæ³ä¼ 大西賢治 0.990816673861238 人éçºå±è« æ¸ç°å¸å ç«¥åå±å£ 0.990265827114968 ã¡ã¸ã£ã¼ãªã¼ã°é¸æä¸è¦§ F ã¡ã¸ã£ã¼ãªã¼ã°é¸æä¸è¦§ K 0.989775319616109 çæ ä»æµªç¥ä» 0.989574427352262 æ ªå¼ä¼ç¤¾ã³ã¼ã±ã³ 京æµå®¶æ 0.988301506511739 ä½åæ£äºé è²å·ä¸ä¸ 0.987181482040356 æ°¸ä¹ å¯¿å¤« æåéé¢¨ä¼ æ¥æ¬æµ· 0.98616784759357 çªè代è¦å¯ç½² é¡å±±è¦å¯ç½² (ç¦å³¶ç) 0.985511357646904 æ²³åè¦å¯ç½² ç½ç³è¦å¯ç½² (å®®åç) 0.985341109030206 ä¸è¦å¯ç½² ç±ç°è¦å¯ç½² 0.985244748731653 津島è¦å¯ç½² 天ç½è¦å¯ç½² 0.984575913684946 æ±åè¦å¯ç½² (æ°æ½ç) æ°æ½è¥¿è¦å¯ç½² 0.983341530648179 ã¢ã¢ã㯠MAJESTIC CIRCUS 0.982210962978045 è·æ¥è¨ç·´æå°å¡ (æ¼å¨ç§) è·æ¥è¨ç·´æå°å¡ (å¡è£ ç§) 0.982116598007288
ãã¼ããåã£ã¦ããããªåã£ã¦ããªããããªãè¦å¯ç½²ã®ãã¢ããããå¤ãã§ãããããã¡ããä¸ä½ã®æ¹ãè¦ã¦ã¿ã¾ãã
èæ女å¦é¢æ¾éå± åã®è¹ã®ã«ã¼ã·ã¼ 0.831625376771682 ããã!!ã«ã¼ããã¹ã¿ã¼ AZEL -ãã³ãã¡ã¼ãã©ã°ã¼ã³ RPG- 0.831544323236761 é£è¡ç¬¬5æ¦é (æ¥æ¬è») é£è¡ç¬¬4æ¦é (æ¥æ¬è») 0.831488221371462 ã¡ã¿ã«ãã³ã¸ã§ã³ ã²ã¾ãã (æãã©) 0.831465811425831 ä½ãªã俺ã«è©±ãã¦ã¿ã ä»è± 0.831460166966955 è·æ¥è¨ç·´æå°å¡ (ããã«ã»æ 館ã»ã¬ã¹ãã©ã³ç§) è·æ¥è¨ç·´æå°å¡ (ã¤ã³ããªã¢ç§) 0.831458630727353 ã«ã¼ã³ãã¡ã¯ããªã¼ ããã³ãã£ã¢ ã¹ã·çå! 0.831398551766701 ãã£ãã·ã¥ã¬ã¸ã¹ã¿ã¼ ä½ãªã俺ã«è©±ãã¦ã¿ã 0.831379733306556 åå西 åå西 0.831115494491915 ãã¤ãã¼ã¬ã¹ãã©ã³ ã³ã£ããç±è¡æ°è¨é² 0.831108298496472 ããªã³ã»ã¹ãã¥ã㥠GOOD LUCK!! 0.831069855040055 SONIC A-GO-GO!! FNNãã¥ã¼ã¹ã¬ãã¼ã 0.83106626790226 è·æ¥è¨ç·´æå°å¡ (å°ç« 彫å»ç§) è·æ¥è¨ç·´æå°å¡ (è²´éå±ã»å®ç³ç§) 0.831052281622264 è·æ¥è¨ç·´æå°å¡ (å·¥æ¥å è£ ç§) è·æ¥è¨ç·´æå°å¡ (建ç¯æ¿éç§) 0.830981136625595 ãã«ã¢ããã!ã³ã³ ãã¹ãã¼ãªãºã 0.830871708012674
ãã¼ããåã£ã¦ããããªåã£ã¦ãªããããªãã¨ãããç¥ããªãåèªã°ããã§ããåãããªãâ¦^^; å ¨é¨ã®çµæã¯ä»¥ä¸ã®å ´æã«ç½®ãã¾ããã®ã§ãèå³ã®ããæ¹ã¯ãåç §ãã ããããããé¢ä¿ãæ·±ããã®ããã¢ã«ãªã£ã¦ãããã¨ããããã§ã¯ãªãã§ãããããç¨åº¦é¢ä¿æ§ã®ãããã®ã¯åãã¦ããããã«æãã¾ãã
ã¾ãä»ã®ããã°ã©ã ã§ã¯ãã©ã³ãã ã«é¸æãããã¯ãã«ã¨ããããã¯ãã«ãä¿åãã¦ããªãã®ã§ããããããä¿åãã¦åå©ç¨ã§ããããã«ãã¦ããã°ãæªç¥ã®å ¥åã«å¯¾ãã¦ãé¡ä¼¼ããã³ã³ãã³ããæ±ãããã¨ãå¯è½ã«ãªãã¨æãã¾ãã
ãã¨ã転置ã¤ã³ããã¯ã¹ãä½ã£ã¦ãããã使ç¨ãã¦å¯¾è±¡ãçµãè¾¼ãã§ããé¡ä¼¼åº¦ãæ±ããæ¹æ³ã§ããåããããªãã¨ã¯åºæ¥ãã¨æããã ãã©ãããã¨æ¯ã¹ãã¨ãã®LSHã®å©ç¹ã¯ä½ã ããã転置ã¤ã³ããã¯ã¹ãç¨æããå¿ è¦ããªããã¨ã¨ãå¤å°æ¯è¼ããåæ°ãæ¸ãã¨ããã ãããï¼ã§ããã®åãåç¾çã¯æ¸å°ããã ããããããã®è¾ºã¯ãã¬ã¼ããªãã«ãªã£ã¡ãããã§ããããã