èªç¶è¨èªå¦çã®ææ°ææ³"word2vec"ã§è¦ããå è³ããããä¹³ãå¼ãã¦ã¿ã
æ¦è¦
ãã®è¨äºã¯èªç¶è¨èªå¦çã¨ããåéã®ææ°ææ³word2vec
ãå©ç¨ãã¦èª°ã§ãéã¹ãããã«ããããã®æé ã説æãããã®ã§ãã
word2vecãå©ç¨ããã¨æå³ã®è¨ç®ãå®ç¾ã§ãã¾ãã
ä¾ãã°"king"ãã"man"ãå¼ãã¦"woman"ã足ãã¨"queen"ãåºã¦ãããã
"æ±äº¬"ãã"æ¥æ¬"ãå¼ãã¦"ãã©ã³ã¹"ã足ãã¨"ããª"ãåºã¦ããã¨ããé¢ç½ãææ³ã§ãã
èªç¶è¨èªå¦çã¨ã¯äººéãæ¥å¸¸çã«ç¨ããèªç¶è¨èªãã³ã³ãã¥ã¼ã¿ã«å¦çããã
翻訳ãè¦ç´ãæåå
¥åæ¯æ´ã質åå¿çã·ã¹ãã ãä½ããªã©ã«æ´»ç¨ããã¦ããåéã§ãã
èªç¶è¨èªå¦çã¨è¨ãã¨è³æ
£ããªãè¨èããããã¾ãããã
å®ã¯æ¤ç´¢ãæ¨è¦ãªã©ã§ç§ãã¡ãæ¥å¸¸çã«å©ç¨ãã¦ãããªãã¿æ·±ãæè¡ã§ãããã¾ãã
èªç¶è¨èªå¦çã®é©ç¨ç¯å²ãè¦ç´ æè¡ã¯å¹
åºãã®ã§ããã
ãã®ä¸ã§ãword2vecã®ç¹è²ã¯ã
åé ã§ãæããããã«ãæå³ã®è¨ç®ããåºæ¥ããã¨ã§ãã
ããã¯ä»ã¾ã§ã®æè¡ã§ã¯å®ç¾ãå¾ãªãã£ããã¨ã§ã
ä»å¾ç 究ãé²ãã«ã¤ãã©ãã©ãå¿ç¨ãåºãã£ã¦ãããã¨ã§ãããã
word2vecã¯2013å¹´ãã主ã«Mikolovéãçºè¡¨ãããã®ã§ã
èªç¶è¨èªå¦çç 究è
ã®ä¸ã§ã伸ã³ããã®å¤§ãããã
ä»æã注ç®ããã¦ããæ°æè¡ã ã¨æããã¾ãï¼çè
主観)ã
æ¬è¨äºã§ã¯word2vecãå©ç¨ãããã¨ã主ç¼ã¨ãã¦ããã
çè«çãªèª¬æã¯ä¸è¨ãåç
§ãã¦ãã ããã
Statistical Semantics入門の発表をしました
ãã¦ãããã§ã¯ä»ããword2vecã§éãã§ã¿ãæµããç´¹ä»ãã¾ãã
éã¶åã«ãä½ãç®çã¨ãã¦ã©ã®ãããªãã¼ã¿ãå©ç¨ããããªã©
åé¡è¨å®ããã¦ä½æ¥ã®æµããææ¡ãã¾ãããã
â ç®çã»ã´ã¼ã«
è¦éããããããã®å è³ããããä¹³ãå¼ãã¦ã¿ãã¨
ã©ã®è¦å¨ãåºã¦ãããï¼ã調ã¹ãã
â çç±ãå¿ç¨å
好ã¿ã®èããã£ã©ã«å¯¾ãã¦å¥½ã¿ã®å±æ§ã足ãããå¼ããããããã¨ã«ãã£ã¦
æ´ã«èãããã£ã©ãæ¨è¦ãããã¨ãå¯è½ã«ãªãããã
å¾æ¥ã®æ¨è¦æè¡ã§ã¯åããããªã¸ã£ã³ã«ã®ãã®ã°ãããè¦ããã¡ã§ãã£ããã
ã©ã®ãããªæ¨è¦ããã¦æ¬²ããããã¦ã¼ã¶ãèªç±ã«æ±ºå®ã§ããªãã¨ããæ¬ ç¹ãããã¾ãã
ããã§word2vecãç¨ãããã¨ã®å©ç¹ã¨ãã¦ãå¾æ¥ã®æ¨è¦æè¡ã§ã¯æãå¾ãªã
ãæ¨è¦ã®æ¹åããæä½å¯è½ãªãã¨ãç¹å¾´ã§ãããã¨ãæãããã¾ãã
ããã«ãã£ã¦ããè¯ãèããã£ã©ã§ããããããã«ãªãã
åæç£ãè¦å¨ã®æ°ããªé
åã«æ°ã¥ããã¨ã«ãã£ã¦é®å®åºã«æã¨å¹³åãããããããã
ãªããæ°ããè¦å¨ã®ä¸ããç¹ã«å è³ãããé¸ãã çç±ã¯ã
è¦ããã®ä¹³ã¨è¨ãã°å è³ããã§ããã¨ãã
å
¨å®å®ã®ç·æã«åºã¥ããå¿
ç¶ã«ãããã®ã§ããã
åè«ã¯ä¸åèªããªããå
¨é¢çã«æå¦ããã
â ã¤ã³ã¹ãã¼ã«ãããã®
python2.X(3ç³»ã ã¨ä¸è¨ã©ã¤ãã©ãªãåããªãããâ¦)
mecab(è¾æ¸ã¯shift-jis,ã¤ã¾ãããã©ã«ãè¨å®ã§)
gensim(å
¥ããåã«scipyãªã©ãå
¥ããã¨è¨ãããããããã¾ãã)
â ä½æ¥ã®æµã
- ããã¹ããã¼ã¿ãï¼ã¡ããããããåå¾ãã
- åå¾ããããã¹ããword2vecã§å¦çã§ããããå å·¥ãã
- word2vecã§ãã¼ã¿ãå©ç¨ãã¦ã¢ãã«ãä½æãã
- word2vecã®ã¢ãã«ãå©ç¨ãã¦å è³ããããä¹³ãå¼ã
1. ããã¹ããã¼ã¿ãï¼ã¡ããããããåå¾ãã
word2vecã¯ãã¼ã¿ããå¦ç¿ãã¦æå³ã®è¨ç®ãå¯è½ãªã¢ãã«ãä½ãåºãã¾ãã
ãã®ãããã¼ã¿ãç¨æããå¿
è¦ãããã¾ãã
è¯ããã¼ã¿ãç¡ãã¨è¯ãå¦ç¿ãåºæ¥ããæå³ã®è¨ç®çµæãç´æã«æ²¿ããªããã®ã¨ãªã£ã¦ãã¾ãã¾ãã
è¯ããã¼ã¿ã¨ã¯ãåºæ¥ãéã大éãã¤ã´ããåãé¤ãããã®ã§ãã
ï¼ã¡ããããã®ãã¼ã¿ã®ããã大éã®ã¿ã°ãAAãªã©ãå
¥ã£ã¦ãã¾ãã
ãããæ¬æ¥ãªãæ§ã
ãªææ³ã¨ããªãã®æä½æ¥ã§ã¯ãªã¼ãã³ã°ãã¦ããã®ã§ããã
æ¬è¨äºã¯åå¿è
åãã®ããæä½éã®å¦çãæ½ãããã®ãç¨æãã¦ãããã®ã§ã
ãããå©ç¨ãã¦ä¸ããã
DLãã¦kankore.pyã¨ååãä»ãã¦ä¿åãã¾ãã
使ãæ¹ã¯
python kankore.py url æ¿ãã©ã«ã ãã¼ã¯ã¼ãï¼ã¹ã¬ã¿ã¤ã«æå®ãããã¼ã¯ã¼ãå«ã¾ãã¦ãã¹ã¬ãåå¾ï¼
ã£ã¦æãã§ãã
å
·ä½çã«ã¯ä»¥ä¸ã®ããã«ãã¾ãã
python kankore.py http://uni.2ch.net/ gameswf/ è¦ãã > kankore.txt
ããã§2ã¡ããããã®ãã¼ã¿ãåå¾ãã¦kankore.txtã¨ãããã¡ã¤ã«ã«ä¿åã§ãã¾ãã
2. åå¾ããããã¹ããword2vecã§å¦çã§ããããå å·¥ãã
次ã«ãåå¾ãããã¼ã¿ãåãã¡æ¸ããã¾ãã
è±èªã¯ååèªã®åãç®ã«ã¹ãã¼ã¹ãå
¥ãã¾ããã
æ¥æ¬èªã¯åèªã®åãç®ãæ示çã«ä¸ããªã表è¨ããã¾ãã
ãã®ãããã©ãããã©ãã¾ã§ãåèªãªã®ããæ示çã«ä¸ããå¿
è¦ãããã¾ãã
ååèªã空ç½ãªã©ã§åãåãã表è¨ãåãã¡æ¸ãã¨è¨ãã¾ãã
ä¾ã¨ãã¦ããæãæ¡ãæ¡ã®ãã¡ãã平仮åã«ããæãåãã¡æ¸ãããã¨
ãããããããããã®ãã¡âããã ã ãã ã ãã ã® ãã¡
ã¨ããæãã«ãªãã¾ãã
ãããæ¬æ¥ãªããã®åãã¡æ¸ãããã®ã¯çµæ§é£ããã¦è²ã
ç
©éãªä½æ¥ãããã®ã§ããã
ä»åã¯ç§ã®æ¹ã§ç¨æããè¦ããè¾æ¸ã使ãã¾ãã
åãã¡æ¸ãã«ã¯mecabãå©ç¨ãã¾ãã
ããã¯èªç¶è¨èªå¦ççéã§ããã¡ã¯ãã¹ã¿ã³ãã¼ããªãã¼ã«ã§ãã
ã¤ã³ã¹ãã¼ã«ä½æ¥ã¯ç°¡åãªã®ã§ãã¡ããªã©ãè¦ã¦ä¸ããã
http://handsrecs2nd.seesaa.net/article/140090025.html
mecabãã¤ã³ã¹ãã¼ã«åºæ¥ãããç¨æãã¦ãããè¦ããè¾æ¸ã使ãã¾ãã
これããã¦ã³ãã¼ããã¦ãmecabãã©ã«ãã®ä¸ã«ããdicãã©ã«ãã«ç½®ãã¾ãã
mecabãã©ã«ãã®ä¸ã«etcãã©ã«ããããã®ã§ããã®mecabrcãã¡ã¤ã«ãéãã¦
; userdic = /home/foo/bar/user.dic
ã¨æ¸ãããè¡ã
userdic = "C:\ï¼mecabã¤ã³ã¹ãã¼ã«ãããã©ã«ãï¼\dic\kankore.dic"
ã¨æ¸ãæãã¾ãã
ããã§è¾æ¸ã®æºåã¯OKã§ãã
ãããã¤ä¸¸æ¹äºã§å¤§çºåèãã£ã¨æ¬²ãããã¨ããä¸æãmecabã«é£ãããå ´åã
è¾æ¸è¿½å åã¯
>ã ãã£ã©ã¼,*,*,*,*,*,ã,ã¢,ã¢
>ã㤠形容è©,èªç«,*,*,形容è©ã»ã¢ã¦ãªæ®µ,ã¬ã«æ¥ç¶,ãã¤ã,ãã,ãã
>丸 åè©,åºæåè©,人å,å§,*,*,丸,ãã«,ãã«
>æ¹ åè©,ä¸è¬,*,*,*,*,æ¹,ã¢ã©ã¿ã¡,ã¢ã©ã¿ã¡
>äº åè©,æ°,*,*,*,*,äº,ã,ã
>㧠å©è©,æ ¼å©è©,ä¸è¬,*,*,*,ã§,ã,ã
>大 æ¥é è©,åè©æ¥ç¶,*,*,*,*,大,ãã¤,ãã¤
>çºå åè©,ãµå¤æ¥ç¶,*,*,*,*,çºå,ãããã¦,ãããã¼
>è åè©,æ¥å°¾,ä¸è¬,*,*,*,è,ãã¤,ãã¤
>ãã£ã¨ å¯è©,ä¸è¬,*,*,*,*,ãã£ã¨,ã¢ãã,ã¢ãã
>欲ãã 形容è©,èªç«,*,*,形容è©ã»ã¤æ®µ,åºæ¬å½¢,欲ãã,ãã·ã¤,ãã·ã¤
ã¨ãªãã¾ããããã®è¾æ¸ã追å ããã¨
>ããã¤ä¸¸ åè©,ä¸è¬,*,*,*,*,ããã¤ä¸¸,ã¢ãããã«,ã¢ãããã«
>æ¹äº åè©,ä¸è¬,*,*,*,*,æ¹äº,,
>㧠å©è©,æ ¼å©è©,ä¸è¬,*,*,*,ã§,ã,ã
>大çºåè åè©,ä¸è¬,*,*,*,*,大çºåè,,
>ãã£ã¨ å¯è©,ä¸è¬,*,*,*,*,ãã£ã¨,ã¢ãã,ã¢ãã
>欲ãã 形容è©,èªç«,*,*,形容è©ã»ã¤æ®µ,åºæ¬å½¢,欲ãã,ãã·ã¤,ãã·ã¤
ã¨ããæãã«ãªãã¾ãã
mecabã®æºåãæ´ã£ããã³ãã³ãããã³ããã§
mecab -Owakati kankore.txt > wakati_kankore.txt
ã¨ããã¨åãã¡æ¸ãããããã¡ã¤ã«ãçæããã¾ãã
ããã§ããããword2vecã«æµãè¾¼ãã¾ãããç²ãæ§ã§ããã
çã®å°çã¯ããããã ã
3. word2vecã§ãã¼ã¿ãå©ç¨ãã¦ã¢ãã«ãä½æãã
ããããgensimãå©ç¨ãã¦word2vecãå®è·µãã¦ã¿ã¾ãã
word2vecã¯googleçã®å®è£
ããã£ã¦ãã使ã£ãæ¹ã1.5åãããéãã®ã§ããã
*2
ã¨ããããåããåã«ã¯pythonããæ±ããæ¹ãç°¡åãã¨æãã¾ãã®ã§
ããã§ã¯gensimã¨ããã©ã¤ãã©ãªãå©ç¨ãã¾ãã
*3
pip install gensim
ã§gensimãã¤ã³ã¹ãã¼ã«ãããã¨ãåºæ¥ã¾ãã
次ã®ã³ã¼ããã³ãããã¦å®è¡ãã¦ä¸ããã
from gensim.models import word2vec import logging logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) # ä»ã©ããããå¦çãé²ãã§ãã確èªããç¨ sentences = word2vec.Text8Corpus('wakati_kankore.txt') model = word2vec.Word2Vec(sentences, size=200) #MBAã ã¨100MBã§2åå¼±ããããããã¾ãã def s(posi, nega=[], n=5): cnt = 1 result = model.most_similar(positive = posi, negative = nega, topn = n) print 'é ä½', 'ãã£ã©å', 'é¡ä¼¼åº¦' for r in result: print cnt, r[0], r[1] cnt += 1
ããã§æºåå®äºï¼gensimã使ãã¨ã¨ã£ã¦ãç°¡åã§ããï¼
é¢æ°sã®å¼æ°ã¯
s([足ãããå±æ§], [å¼ãããå±æ§(çç¥å¯ãçç¥æå¼ãããå±æ§ç¡ã)], ä¸ä½ä½ååºåããã)
ã¨ããæãã§è¨å®ãã¦ä¸ããã
ããã§æå³ãè¨ç®ãã¦é¡ä¼¼åº¦ãé«ãé ã«åºåãã¦ããã¾ãã
4. word2vecã®ã¢ãã«ãå©ç¨ãã¦å è³ããããä¹³ãå¼ã
æ©éå è³ããâ¦ã®åã«ã¡ãã£ã¨é§å³¶ã§è©¦ãã¦ã¿ã¾ãããã
é§å³¶ã¯æ¦è¦ã®ã¡ã¬ãæ
å½ã§ãã
è¦ããã¯ã¡ã¬ãæ
å½ãå°ãªãã
ç¹ã«é§å³¶ã¯ä¸»åãå¼µããå®åãã¤å§å¡é·ã¿ã¤ãã¨ãã
ç¹ç°æ§ãæã£ãæãã¹ãè¦å¨ã§ãã
é§å³¶ã¨é¡ä¼¼åº¦ãé«ããã£ã©ä¸ä½5åãä¸ãã¦ããã¾ããã
>>> s(['é§å³¶'])
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 æ¦å 0.845242
>2 æ¯å¡ 0.807935
>3 é¼é·¹ 0.696393
>4 鳥海 0.676646
>5 ãã¨ã¼ 0.668688
1ä½æ¦åã2ä½æ¯å¡ã¯å§å¦¹è¦ï¼åãæ¦è¦ã¨ããè¦ç¨®ã§ãããé å½ã
3ä½ã®é¼é·¹ã¯ã©ãããç¹ãããããããããªãã§ããã
4ä½ã®é³¥æµ·ã¯ã¡ã¬ãç¹ããã§ã¯ãªãã§ããããã
4ä½ã«é³¥æµ·ãåºã¦ããã®ã§ãé§å³¶ã«ã¡ã¬ãã足ãã¦
æ¦è¦ãå¼ãã¦ã¿ãã¨ã©ããªãã確èªãã¾ãã
>>> s(['é§å³¶','ã¡ã¬ã'],['æ¦è¦'])
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 鳥海 0.507391
>2 æ·±éª 0.49015
>3 æ¯å¡ 0.482907
>4 ææ 0.478213
>5 æ¦å 0.465617
è¦äºé³¥æµ·ã1ä½ã«ãªãã¾ããã
ããã¦å
ã»ã©ã¯1ä½ã§é¡ä¼¼åº¦ãé常ã«é«ãã£ãæ¦åã
5ä½ã®ãªã®ãªã¾ã§è½ã¡è¾¼ãã§ããã®ãé¢ç½ãã§ããã
ããã«é³¥æµ·ã®è¦ç¨®ã§ããéå·¡ã足ãã¦ã¿ãã¨â¦ã
>>> s(['é§å³¶','éå·¡','ã¡ã¬ã'],['æ¦è¦'])
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 鳥海 0.666885
>2 ç±è¯ 0.635467
>3 é«é 0.62329
>4 å©æ ¹ 0.615573
>5 å¤é·¹ 0.61162
鳥海1ä½ã¯å¤ãããªãã®ã§ãããé¡ä¼¼åº¦ããã£ã¨ä¸ããã¾ããã
ç±è¯ãä¸ãã£ã¦ãã¦ãã®ã¯ãªãã§ãããããï¼
ããã¦æ¦åã¯å®å
¨ã«è½ã¡ã¾ããã
è²ã é©å½ã«æãã¦éãã§ã¿ã¾ããã
>>>> s(['ãã«ãã'])
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 鬼æ 0.635817
>2 èæ½® 0.61133
>3 é»æ½® 0.604449
>4 ã²ãã¼ 0.603935
>5 ã«ã«ãª 0.601855
鬼æï¼ãã¬ï¼ã¯ãã®åé¢ããããã«ããã
ã¨å¼ã°ãããã¨ãå¤ãã®ã§çãéãã
>>>> s(['é«é']) #è¦ãããã£ã±ãæ å½ãå¿ã®åºããæãã¹ããã£ã©
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 å©æ ¹ 0.76036
>2 鳥海 0.736499
>3 å¤é·¹ 0.729154
>4 æå® 0.725223
>5 é£æº 0.718696
>>>> s(['é·è¯']) #è¦ããã¹ãã¼ã女åæ å½ãå ¨ã¦ãæ§ãã¦æãã¹ããã£ã©
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 ç磨 0.838549
>2 å¤æ© 0.792809
>3 åå 0.78698
>4 ç±è¯ 0.742747
>5 ç¾½é» 0.723103
>>>> s(['ä¸ç¥ç«']) #è¦ãããã³æ å½ãè¨ãã¾ã§ãç¡ãæãæãã¹ããã£ã©
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 é° 0.791995
>2 é»æ½® 0.758737
>3 æºæ½® 0.750464
>4 é 0.748772
>5 èæ½® 0.743553
åã«ï¼ã¡ããããã®ããã¹ããé£ãããã ãã§ã
è¦ç¨®ã¡ã¿ãã¼ã¿ãä¸ããããã§ã¯ãªãã®ã§ããã
大ä½è¦ç¨®ãæã£ã¦ã¾ãã*4ã
ãï¼ãªãã§ãã®è¦å¨ãé¸ãã ãã£ã¦ï¼
ããã§ãããæããªã
>>>> s(['ä¸å¹¸','å§å¦¹'])
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 鶴 0.691494
>2 æ¶æ¡ 0.68556
>3 éå 0.645539
>4 ä¼å¢ 0.623382
>5 妹 0.618033
å²å®ãä½ä¸å°è©ãäºæ¬¡åµä½ã§ä½ãã¨ä¸å¹¸ã«ééãããã¨ãã
ä¸å¹¸å§å¦¹ã¨å¼ã°ããç/ç¿é¶´ãæ¶æ¡ã
éåã¨ãä¼å¢ã¯ä¸å¹¸ã¨è¨ããå§å¦¹ãå¼·ãå©ãã¦ããã®ããªã£ã¦æãã§ããã
>>>> s(['æç£'])
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 è«¸æ° 0.472251
>2 紳士 0.451628
>3 å¤æ 0.438056
>4 ãã«ã㤠0.430615
>5 æ°ç±³ 0.428584
æç£å士ã§å¼ã³ãããæãããæç£è«¸æ°ãã£ã¦ä½¿ãããã£ã½ãã§ããã
ãã¨3ä½ã«å¤æ
ãæ¥ã¦ããã§ããçããã®è¨åãè¦ãã«
ããã1ä½ã§ããã¹ãã ã¨æãã¾ããã¾ãã
ãã£ã¨è¯ãã¢ãã«ãä½ãã°ãã£ã¨ä¸ä½ã«ãªãã§ãããã
ãããå¾ ã¡ãããå è³ããã§ãã
>>>> s(['å è³'])
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 赤å 0.813888
>2 é£é¾ 0.718207
>3 è¼é¾ 0.712446
>4 é³³ç¿ 0.675858
>5 祥鳳 0.668783
空æ¯ã並ãã§ã¦ã¾ãé å½ãªæãã§ãã
ã¡ãªã¿ã«1ä½ã®èµ¤åã0.8è¶
ãã¦ã¦ãããã«2ä½ã«0.1è¿ã大差ã¤ãã¦ãã®ã
ããã¾ãä»ã§è¦ããã¨ç¡ãã®ã§ãã»ã©é »åºãªçµåãã®ããã§ããã
å¤æ¥ããã®è¨ãä¼ãã¨ãã¦
ãã±ãã®ç¿é¶´ãä¹³ã®å è³ã
ã¨ããåè¨ãããã®ã¯çããããåç¥ã®äºã¨æããã¾ãã
ã§ã¯ãã®å è³ããããä¹³ãå¼ãã¦ã¿ããã©ããªãã§ããããã
>>>> s(['å è³'],['ä¹³'])
>é ä½ ãã£ã©å é¡ä¼¼åº¦
>1 赤å 0.492795
>2 é£é¾ 0.444622
>3 è¼é¾ 0.436392
>4 ç鶴 0.411837
>5 Ju 0.408483
çµæã¯ã1~3ä½ã¾ã§ã¯å¤ãããã4ä½ã«ããã¾ã§ã©ã³ã¯å¤ã ã£ãç鶴ãå
¥ãã¾ããã
1~3ä½ã¾ã§ã¯å è³ããã¨ããå±æ§ã«å¯ãããããã®ã§ã
ããããä¹³ãå¼ããçµæã¨ãã¦å¯ããããç鶴ã
ãã®å ´åå è³ããã®ç¥ã
ããä¹³ã®è¦ç´ ãåãé¤ããåå¨ã¨è§£éåºæ¥ã¾ãã
å
·ä½çã«å è³ãã
ã¨ç鶴
ãè¦æ¯ã¹ã¦ã¿ã¾ãããã
ãã®å
ãè¸å½ã¦ã®ä¸ããã§ããããå è³ããå§åçãªè³ªéãèªãè¸ã
ããã«å¯¾æ¯ããã¨â¦ããããã®ãåªåã¯æããç鶴ã®è¸ãã¯ãï¼
çµããã«
ãªãããããããã¼ï¼ã¨æã£ã¦é ããã°å¹¸ãã§ãã
word2vecã¯ããã¾ã§åºæ¥ãªãã£ããã¨ãå¯è½ã«ããæè¡ã§ãã
ããããä»å¾ã©ã®ããã«æ´»ç¨åºæ¥ãã ãããã¯ã¯ã¯ã¯ãããããã§ãã
ãã ãã¾ã åºãã°ããã®æè¡ã§ãããããç¥è¦ãæ®ã©æºã¾ã£ã¦ãã¾ããã
ããã¾ãã«ããã¼ã¿ä¾åéããï¼ã¡ãã£ã¨åå¦çå¤ããã ãã§å
¨ç¶çµæå¤ããï¼ãã
çµæãä¿¡ç¨ã§ãããã¨è¨ãããã¨ããªãå¾®å¦ã§ãã
ãã¥ã¼ãã³ã°ã®ä»æ¹ãåãããææ¢ãã§ã
ã²ãããã¢ãã«ä½ãã¾ãã£ã¦ãã¹ãããçµæã
ç®ã§è¦æ¯ã¹ã¦è¯ããããªé°å²æ°ã®ã¢ãã«ãé¸æããã¨ããæãã§åããã¦ãã¾ãã
é常ã«badã§ãã
ã ãããããã£ã³ã¹ã§ãä»ãã®æè¡ã使ã£ã¦é¢ç½ããã¨ãããã¯ã³ãã£ã³ããã§ãã
ã¨ãããã¨ã§ãã¿ããªã§word2vec触ãã¾ãã£ã¦
ããããªãã¨åºæ¥ããï¼ã
ããããªä½¿ãæ¹ã©ãã ããï¼ã
ã£ã¦ã®ããã£ã¦ãããã°ãããªã¼ã¨æãã¾ãã
åèæç®
http://blog.unnono.net/2014/02/statistical-semantics.html
http://blog.unnono.net/2014/01/nips2013word2vec.html
http://www.slideshare.net/uchumik/rnnln
http://aclweb.org/anthology/N/N13/N13-1090.pdf *5
è¬è¾
ãã³ãã³å¦ä¼ã§çºè¡¨ããã¦é ãã¾ããã
ãã®å ´ã§è²ã
ã³ã¡ã³ãé ãã¦è¯ãã£ãã§ãã
ãã¹ãLTæé£ã御座ãã¾ããã
追è¨
ãå°æ¥å è³ããã«æé·ããå¯è½æ§ã®ããé§éè¦ãæ½åºããã
ã¨ããã¿ã¹ã¯ãé¢ç½ã¿ããã®ã§èª°ãããã¾ãããï¼ï¼
追è¨2
ãå è³ãã - ä¹³ã§ç鶴ã¯ãããããé¾é©¤ãæ¥ãã¹ãï¼ã
ã¨ä¸»å¼µããæç£ãå¤ãããã®ã§èª¬æããã¦é ãã¾ãã¨ã
ã巨乳 - ä¹³ -> æ®éä¹³ã
ã¨ããã¤ã¡ã¼ã¸ãæã£ã¦é ãããã
ç§ããè¨ãããã¨ã¯ä»¥ä¸ã§ãã
ãã¨[ã¾ãªæ¿ -> é¾é©¤]ã ã£ããã¨ãæå¾ã«ä»ããããã¦ç· ãã¨ããã¦é ãã¾ãã
*1:ubuntu, macã®æ¹ãã¤ã³ã¹ã³ãæååãã®å¯¾å¦æ¬å½ã«æ¥½ãªã®ã§æã£ã¦ããªããã£ã¡ä½¿ã£ãæ¹ãè¯ãã§ãâ¦
*2:ç§ã®ç°å¢ã§ã®å¤§ä½ã®é度ã§ãã£ã¦ãã¡ãã¨ããæ¯è¼æ¤è¨¼ãè¡ã£ãããã§ã¯ãªã
*3:googleçãmacã§ã¯ã³ã³ãã¤ã«åºæ¥ããã©windowsã§ã¯ã¨ã©ã¼åºã¾ããä¸ã«æçµçã«åãã¾ããã§ããâ¦
*4:ãã¼ã¿ã¨åå¦çã«ãã£ã¦çµæã¯å¤§ããå¤ããã¾ããçµæ§é å¼µããªãã¨ãã綺éºãªçµæã¯åºãªãã§ã
*5:å ¨ç¶ãããã