Julia package to load and use dereko2vec language models.
Currently, only paradigmatic analysis and count-based collocate queries are supported.
julia -e 'using Pkg; Pkg.add(url = "https://korap.ids-mannheim.de/gerrit/ids-kl/DerekoVecs.jl")'
pkg> add "https://korap.ids-mannheim.de/gerrit/ids-kl/DerekoVecs.jl"
In order to query count-based collocates, using the get_collocates()
function, collocatordb needs to be installed.
using DerekoVecs model = load("model.vecs") knn(model, "interessant", 10) cos_sim(model, "gut", "besser") model2 = load("model2.vecs") cos_sim(model, model2, "also") kld(model2, model) c = get_collocates(model)
This package is licensed under the Apache License 2.0