OSDN Git Service
(root)
/
rec10
/
rec10-git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix status.py error
[rec10/rec10-git.git]
/
rec10
/
trunk
/
src
/
n_gram.py
diff --git
a/rec10/trunk/src/n_gram.py
b/rec10/trunk/src/n_gram.py
index
75ef09c
..
e653d03
100644
(file)
--- a/
rec10/trunk/src/n_gram.py
+++ b/
rec10/trunk/src/n_gram.py
@@
-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による単語の近さを計算します。
"""