Clone this repo:

Branches

  1. a3407ab Improve README concerning coverage of syntagmatic analysis by Marc Kupietz · 2 years, 3 months ago master
  2. f6e7840 Don´t use StatsPlots and bump to v0.6.1 by Marc Kupietz · 2 years, 4 months ago
  3. b3465f6 Add tsne function by Marc Kupietz · 2 years, 4 months ago
  4. 6327bd0 Fix stop criterion for getting collocates by Marc Kupietz · 2 years, 4 months ago
  5. 370dcb5 Allow passing max number of collocates by Marc Kupietz · 2 years, 4 months ago

DerekoVecs.jl

Julia package to load and use dereko2vec language models.

Currently, only paradigmatic analysis and count-based collocate queries are supported.

Installation

From the command line:

julia -e 'using Pkg; Pkg.add(url = "https://korap.ids-mannheim.de/gerrit/ids-kl/DerekoVecs.jl")'

From within Julia:

pkg> add "https://korap.ids-mannheim.de/gerrit/ids-kl/DerekoVecs.jl"

Note

In order to query count-based collocates, using the get_collocates() function, collocatordb needs to be installed.

Example Usage

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)

License

This package is licensed under the Apache License 2.0