Fix collocator db presence check
Change-Id: I0675726cf99207470b3540ca06e3ee0ceb77c988
diff --git a/src/DerekoVecs.jl b/src/DerekoVecs.jl
index 2a93825..4af8f82 100644
--- a/src/DerekoVecs.jl
+++ b/src/DerekoVecs.jl
@@ -63,11 +63,8 @@
file = readdlm(vocabfn, ' ', String, dims=(n, 2), quotes=false)
rocksdbfn = replace(modelfn, ".vecs" => "")
- println(stderr, "Hallo " * rocksdbfn)
- if (isdirpath(rocksdbfn * ".rocksdb/") && libcdb != "")
- println("opening " * rocksdbfn)
+ if (isfile(rocksdbfn * ".rocksdb/CURRENT") && libcdb != "")
cdb = open_collocatordb(rocksdbfn)
-
end
else
delim = ('\t' in readline(modelfn) ? '\t' : ' ')