Add access to count based collocations
Change-Id: I47b3176285974b65ec8cc2e5871892ef0d104e7b
diff --git a/test/runtests.jl b/test/runtests.jl
index e0ff466..bc29554 100644
--- a/test/runtests.jl
+++ b/test/runtests.jl
@@ -41,4 +41,14 @@
@test wpd19.total_tokens == wpd19_freqlist.total_tokens
@test isapprox(kld(wpd19_freqlist, wpd19).kld, 0)
end
+
+ @testset "DerekoVecs.jl: collocation analysis" begin
+ if (!isnothing(wpd19.cdb))
+ println(wpd19.vocab[30])
+ coll = get_collocates(wpd19, "werden")
+ @test coll[1].ldaf > 10
+ @test coll[1].ldaf > coll[3].ldaf
+ end
+ end
+
end