ãã¡ã¤ã³ã«ããæå³ãå¤åããåèªã®æ½åº
ãã¡ã¤ã³ã«ããæå³ãå¤åããåèªã®æ½åº
ç«å½é¤¨ã®å¦çãããçºè¡¨ãã¦ãçä¸ããè«æããããããJSAI2017ã«åå ãã¦ããé¢ä¿ã§ãå
¬éãåæ¢ããåã«å
¥æãããã¨ãã§ãã¾ãã
è«æä¸ã§ã¯ãå¹¾ã¤ãã®Pixivã«å
¬éããã¦ããBLå°èª¬ã«å¯¾ãã¦å®æ§çãªåé¡ããã¦ãçµããã¨ãããæ©æ¢°å¦ç¿ãå
¥ã£ã¦ããªããããªè«æã§ããã®ã§ãããããªãã«æ©æ¢°å¦ç¿ã使ã£ã¦ã§ãããã¨ã示ãããã¨ããæããããã¾ããï¼ãããªã«å¤§å¤ãªåé¡ã§ãªãããã«è¦ãã¦ããã¤ãåé¡è¨å®ãåªãã¦ããã®ã«ããªã…ï¼
çä¸ã«å¯¾ãã¦æãã¨ãã(主観ã§ã)
Pixivã®BLã®ã³ã³ãã³ããåç
§ããè«æã«ãã³ãã«åãå«ãã¦è¨è¿°ãã¦ãã¾ã£ã¦ãããä½å®¶ã®æ¹ã«ç²¾ç¥çãªä¸å¯ãããã¦ãã¾ãã¨ããäºä»¶ãããã¾ããã
é常ã«RTããã¦ãã代表çãªãã¤ã¼ãã¯ã以ä¸ã®ããã«ãªã£ã¦ãã¾ãã
ï¼è©²å½ãã¤ã¼ãã¯çç¨ã¨ã®ææãåããã®ã§æ¶ãã¾ãããæ¤ç´¢ããã°åºããã®ãªã§ã大ä¹ã ã¨æãã¾ãï¼
å¤ãã®äººããããããªãã¨ãè¨ã£ã¦ãããæ
å ±ã¯æ··æ²ã¨ãã¦ãã¾ãã
ãããã解決ãã¹ãåé¡ã¨æãã¦ããã®ã¯ãäºç¹ã§ãã
- å¼ç¨ãããã¨ã§ãä¸å©çã被ã人ã®å¯¾å¿ã¨é æ ® - 転è¼ã¨å¼ç¨ã®æ··åãæ£ã
解決ã§ããããã«éæãTPOãããã¾ãã¦è©±ãã¾ããããè¯ãæªæ¥ãéãããã¨ãæå¾ ãã¦ãã¾ãã
ï¼ã¢ãã«ããã¡ã¤ã³ãªã©ã«ãããï¼æå³ãå¤åããåèªã¨ã¯
å
è«æã§ã¯ãããããªã©ã®æå³ãå¤åããã¨ããã¦ãã¾ãããããå°ã詳細ã«èãã¦ãã¾ããã
æèã«ãã£ã¦æå³ãå¤åããã¨ãããã¨ãæãç«ã¤ã¨ãããã¨ã¯ããå·ãããã¨ãã£ãã ãã§ãã£ã¦ãã以ä¸ã®ãããªæèä¾åã§æå³ãå¤åãã¦ããããã«ã¿ãããã¨ãããã¾ãã Â
ä¾1.
ã¢ã¤ã¹ã³ã¼ãã¼ãé ¼ãã ãå·ããããããªã«å¤ã®ç±ãæ¥ã«ãã«ãã§ã§é£²ãã³ã¼ãã¼ã¯æé«ã ã
ä¾2.
äºåçãªå£èª¿ã§æ¯æããããå·ãããå½¼ã¯ãããªã«äººéæ§ã«ä¹ããã£ãã ãããã
温度ãå·ããã®ãã人ã®äººæ ¼ãå·ããã®ããæèã§äººéãªãç°¡åã«ç解ã§ãã¾ãã
人éã ãããã®æèã«ãããªã«ããããæå³ã¨ããããæãæ¹ãéããã®ããã¾ãããã¯ã¢ãããããã¨ã¯ã§ããªãã§ãããã
å®ã¯skip thoughtãªã©ã«ä»£è¡¨ãããæç« ã®ãã¯ãã«åãªã©ã®æè¡ã使ãã¨ã§ããã¨ãããã¨ã示ãã¾ãã
ãã¡ã¤ã³ãæèã«ããæå³ãå¤åããèªãæ½åºãã
ãã¡ã¤ã³ã¨ããç²åº¦ã ã¨ãå¤åãã¥ã¼ã¹ãµã¤ãã¨ãå°èª¬ãµã¤ãã§ã¯ãåãåèªãæã£ã¦ãã¦ãå¾®å¦ã«ãã¥ã¢ã³ã¹ãç°ãªããã¨æãã¾ãã  skip gramçãªèãæ¹ã ã¨ãå¨è¾ºã«ããåèªã®åå¸ãè¦ããã¨ã§æå³ã決å®ããã¨è¨ã仮説ãããã¾ãããã®å¿ç¨ä¾ãword2vecã§é¦´æã¿æ·±ãç©ããããã¾ããã Â
Word2Vecã§ã¯ã¨ã³ããªã«ã«ãªè¦ç¹ãããæå³ããã¯ãã«åããã¦ããã¨ãããã¨ãããã£ã¦ãã¾ã
ä»åã®ææ¡ã§ã¯ããããããæ¡å¼µãã¦ãåèªã®æå³ãå¨è¾ºã®æèããä½ããã®å½±é¿ãåãã¦ããã¨ä»®å®ãã¦ãã¢ãã«ãä½ãã¾ãã Â
æèãå®ç¾©ãã
åèªãã大ããªç²åº¦ã§ãããæèã¨ãããã®ãæ確ã«å®ç¾©ããå¿
è¦ãããã¾ã
æèã®ç²åº¦ããæã¨ãã¾ãããæããã¯ãã«åããã®ã«ãskip thought vector[1]ããdoc2vec[2], fastText[3]ãªã©ãå©ç¨ã§ãã¾ã Â
ãã®ãã¯ãã«ã«æå³ããããã®ãå«ã¾ãããã¨ããè°è«ã§ãããICML2016ã®text2imageã«ããã¨ãæç« ãã¯ãã«ããç»åã®çæã«æåãã¦ãããã¨ããéã¿ã¦ããªãããã®ç¹å¾´ãå
å
ããã¦ãããã¨ãããã¾ã[4]
æç« ããã¯ãã«åãã¦ããã®ãã¯ãã«ããã®ç¸å¯¾ä½ç½®ã決ããã®ã¯è¨ç®éçã«é¢åãªã®ã§ãéååãã
åå¾ã®æèãããåèªãã©ã®ããã«ãªããã¯ãæ±ãããã¨ãã§ãããã®ã¯ãããã¾ãããããã¯ãã«ã®ä½ç½®ããè¨ç®ãã¦ããã¨ããã®ã¯å°ã åä»ãªã®ã§ããã¯ãã«ãæ師ãªãã¯ã©ã¹ã¿ãªã³ã°ï¼kmeanï¼ã§éååãã¾ãã  ã¯ã©ã¹ã¿ãªã³ã°ããã¨ãæç« ãã©ã®ã¯ã©ã¹ã«å±ããã®ãå¯ä¸ã«æ±ºã¾ããè¨ç®ã楽ã§ãã
å¹ ã決ãã¦åå¾ã®æèããåèªã表ç¾ãã¦ãã
åèªããã¯ãã«åããã«ã¯Windwoså¹ ã決ãã¦ãåå¾ãåèªãè¦ã¦ããã¾ãããããã«ãªããªããåå¾ã®æç« ãã¿ã¦åèªã«å¯¾ãã¦ã©ã®ãããªæèãåå¨ãã¦ããããæ±ãã¾ãã  ä»åã¯ãåå¾ã®æç« ãä¸ã¤è¦ã¦ããã¾ãã
å®é¨
é·ããªãã¾ãããã仮説ã¨ããã«ä¼´ãçè«ã®æ§ç¯ããã¿ã¾ããã®ã§ãå®é¨ã§ãã 仮説ã«å¯ãã¨ããã¡ã¤ã³ãç°ãªãã¨ãåèªã®æèãå¤åãé常ã¨ç°ãªãåå¸ã«ãªããã¨ãæå¾ ã§ãã¾ãã  äºã¤ã®ã³ã¼ãã¹ãå©ç¨ãã¾ãã
- 2GByteã®Yahoo News + å°èª¬å®¶ã«ãªãã
- 1.8GByteã®ãã¯ã¿ã¼ã³ããã«ãºã®HTML[5]
ãã®äºã¤ã®ã³ã¼ãã¹ãããæèãèæ ®ããåèªãã¯ãã«ãä½æããåãåèªã®cosine similarityãè¿ããé ããè¨ç®ããç´æ¥çã§ãªãã¢ãã«ããã¡ã¤ã³ã®ã¿åºæã§æå³ãå¤åãããã®ãå®éçã«æ¤ç¥ã§ãã¾ãã
çµæ
çµæã¯ãæ¦ãè¯å¥½ããªã¨ããå°è±¡ã§ã
ãã ããã£ã¨ãã¼ã¿ãããã¹ãã ãªãã¨æãã¾ãã
ãã¯ãè¨ç®ã«ã¯è¨å¤§ãªæéãå¿
è¦ã§ãå
¨ãã¼ã¿ã»ãããè¨ç®ãã¦çµæãå¾ãã®ã«24æéãããã®è¨ç®æéãè¦ããã®ã§ããããªãã«ãã¯ã¼ã®ãããã·ã³ã§è¨ç®ãããã¨ããããããã¾ã Â
CPU: Ryzen1700x Memoery: 48GByte
æå³ãå¤åããï¼consine similarityãé ãï¼åèªããã10ã§ãã
åèª Â Â | consine similarity |
---|---|
è | 0.00152 |
å¢ã | 0.00130 |
æ | 0.00130 |
çºå° | 0.00122 |
å | 0.00116 |
ç¹ã㣠| 0.00103 |
ç±ã | 0.00101 |
å½ãã | 0.00095 |
ãã£ã·ã | 0.00093 |
åã | 0.00093 |
æ¡ã£ | 0.00050 |
ã¾ããæå³ãéã«ãããªã«é ããªããã®ã§ãã
åèª | cosine similarity |
---|---|
æè | 0.03889 |
åå | 0.03745 |
ãã¤ã¦ | 0.03451 |
è³ | 0.03083 |
è¶³é¦ | 0.03005 |
æªæ | 0.02739 |
ç¡äº | 0.02721 |
ãã®é | 0.02608 |
é¨ä¸ | 0.02531 |
ç¶æ | 0.02514 |
èå¯
仮説ãä¸åç«ã¦ãå¿
è¦ãããã¾ããããæ¢åã®word2vecçãåä½ãã¦ãã仮説ãæ
ä¿ã¨ãã¦ãããããééããç¡ãããã«æãã¾ã
ãã®ããã«ããã¡ã¤ã³ã«ãã£ã¦æå³ããã¥ã¢ã³ã¹ãç°ãªãåèªã¯ãå®éçãªã¢ããã¼ãã§åæãããã¨ãã§ããã®ã§ãå°èª¬ãå®æ§çãªè¦ç¹ããåæãã価å¤ããã¾ãæããªãã£ãã®ã§ããã人ã«ããã¢ããã¼ãã¯è²ã
ããã¨æãã¾ã
ä»æ¸ãã¦ããã³ã³ãã³ãã«å¿ãã¦ç°¡åã«ãã£ã«ã¿ãªã³ã°ããã¹ãåèªãªã©ã®æ½åºãã§ãããã¨ããåããã¾ãã
å
·ä½çãªæ¹æ³ã¨ãã¦ã¯ãåºæºã¨ãªãããã¥ã¡ã³ãã§çæããåèªã®æèã®åæ£è¡¨ç¾ã¨ããã¡ã¤ã³ä¾åããæå©ãæ¯å©ãªã©ã®åæ£è¡¨ç¾ã¯åå¸ãç°ãªãã®ã§ãcosine similarityãé ããªããã¨ãæå¾
ã§ãã¾ã
ã½ã¼ã¹ã³ã¼ã
https://github.com/GINK03/DomainDependencyMemeJsai2017
deal.pyã«ä¸é£ã®å¦çãè¨ãã¦ããã¾ãããã³ã¡ã³ããè¦æã«ããã¾ããããã¨ã«ããå·¥ç¨ãå¤ãã®ã§ãã©ããã¦ã解説ãå¿ è¦ãªæ¹ã¯ãã¤ãã¿ã¼çã§èãã¦ããã ããã°å¹¸ãã§ã(ã¢ã«ããã¢ã®æ¹ã«éãã¾ã) Â
åèæç®
[1] Sent2Vec
[2] Doc2Vec
[3] fastText
[4] ICML2016, text2image
[5] ãã¯ã¿ã¼ã³ããã«ãº(R18ã§ãã注æãã¦ãã ãã)