We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb20baa commit 9b5f427Copy full SHA for 9b5f427
package/__main__.py
@@ -61,7 +61,8 @@ def calculateSimilarity(files, pcomment):
61
commentsWeight = float(userpref['comment_weight']) # In percentage
62
commentMatrix = irp.createTermDocumentMatrix(corpusComment)
63
commentMatrix = irp.applyWeighting(commentMatrix, 'idf')
64
- simComments = irp.calculateSimilarity(commentMatrix)
+ simComments = irp.calculateSimilarityByEuclideanMethod(
65
+ commentMatrix, sigma=0.3)
66
simCode = ((commentsWeight * simComments) +
67
(100 - commentsWeight) * simCode) / 100
68
0 commit comments