ããã«è©³ç´°ãªå©ç¨æ¹æ³ãç¥ãããæ¹ã¯ãYahoo!ãããããã¼ãºãããã¯ã¼ã¯ã®ããã¥ã¢ã«ãåç §ãã¦ãã ããã ãã¤ã¸ã¢ã³ãã£ã«ã¿ã®å®è£ ããããæ¬æ ¼çã«ãã¤ã¸ã¢ã³ãã£ã«ã¿ã®å®è£ ã«å ¥ã£ã¦ããã¾ãã ãã®åã«ãã¾ãã¯å ç¨ã®ãªã¹ã1ã®ã³ã¼ããå©ç¨ãã¦å ¥åãããæç« ãããã¡æ¸ãããåèªã®éåãè¿ãé¢æ°ãä½æãnaivebayes.pyã¨ãã¦ä¿åãã¾ãããããã¡ããå ç¨ã®morphological.pyã¨åæ§ã«utf-8ã§ä¿åãã¦ãã ããã ãªã¹ã2ãæç« ã®åå²ãããé¢æ°ï¼naivebayes.pyï¼ # -*- coding: utf-8 -*- import math import sys #yahoo!å½¢æ ç´ è§£æ import morphological def getwords(doc): words = [s.lower() for s in morphological.split(doc)
{{#tags}}- {{label}}
{{/tags}}