AdaGram.jl icon indicating copy to clipboard operation
AdaGram.jl copied to clipboard

Distance calc

Open glicerico opened this issue 6 years ago • 0 comments

Added a function to calculate similarity between 2 sense vectors. cos_distance does almost this, but it needs the raw vectors as input.

similarity(vm::VectorModel, dict::Dictionary, w1::AbstractString, s1::Integer, w2::AbstractString, s2::Integer) takes the words as strings, as well as which senses (as integers) to calculate their similarity.

glicerico avatar Mar 05 '18 04:03 glicerico