You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Focus score does not seem to be changing from 0, no matter what the candidate texts are.
It seems like it never runs this: score.append(1.0 / (1.0 + math.exp(-sim + 7))) # score.append(1.0 / (1.0 + math.exp(-doc1.similarity(doc2) + 7)))
When trying to run on its own, I get the error: 'SpacySimilarityHook' object has no attribute 'similarity'
The text was updated successfully, but these errors were encountered:
The error occurs because the SimilarityHook function returns a SpacySimilarityHook object. It should return a doc object. SpacySimilarityHook needs to be initialized first and then called. I guess the code in compute_sentence_similarity() should be:
Focus score does not seem to be changing from 0, no matter what the candidate texts are.
It seems like it never runs this:
score.append(1.0 / (1.0 + math.exp(-sim + 7))) # score.append(1.0 / (1.0 + math.exp(-doc1.similarity(doc2) + 7)))
When trying to run on its own, I get the error: 'SpacySimilarityHook' object has no attribute 'similarity'
The text was updated successfully, but these errors were encountered: