dselivanov / text2vec

Fast vectorization, topic modeling, distances and GloVe word embeddings in R.
http://text2vec.org
Other
849 stars 135 forks source link

Issue-314 - check for fit() before transform() #318

Closed leungi closed 4 years ago

leungi commented 4 years ago

verify that fit object exists before calling transform() by checking for vocab existence.

codecov[bot] commented 4 years ago

Codecov Report

Merging #318 into master will decrease coverage by 0.03%. The diff coverage is 50%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #318      +/-   ##
==========================================
- Coverage   81.82%   81.78%   -0.04%     
==========================================
  Files          36       36              
  Lines        1887     1889       +2     
==========================================
+ Hits         1544     1545       +1     
- Misses        343      344       +1
Impacted Files Coverage Δ
R/model_Collocations.R 85.85% <50%> (-0.74%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 90896b2...ddfb671. Read the comment docs.