OSDN Git Service

fix status.py error
[rec10/rec10-git.git] / rec10 / trunk / src / n_gram.py
index 75ef09c..e653d03 100644 (file)
@@ -6,6 +6,8 @@ import zenhan
 def bigram(str1,str2):
     str1=zenhan.toHankaku(str1)
     str2=zenhan.toHankaku(str2)
+    str1=str1.replace(" ","")
+    str2=str2.replace(" ","")
     """
     bigramによる単語の近さを計算します。
     """