Fix stop criterion for getting collocates

Change-Id: I3e934a805f7ac91a47f7122c8b802d1397b2aec0
1 file changed
tree: 7b1cff68486bb99e89f56e076fcea6d4a0300031
  1. .github/
  2. src/
  3. test/
  4. .gitignore
  5. .gitlab-ci.yml
  6. Artifacts.toml
  7. LICENSE
  8. Manifest.toml
  9. Project.toml
  10. README.md
README.md

DerekoVecs.jl

Minimal Julia package to load and use dereko2vec language models.

Currently, only paradigmatic analysis is 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"

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