koheiw / seededlda

LDA for semisupervised topic modeling
https://koheiw.github.io/seededlda/
73 stars 16 forks source link

Add model argument to pass existing model #23

Closed koheiw closed 2 years ago

koheiw commented 2 years ago

Add the model argument to textmodel_lda() to better address #9 and #19.

codecov[bot] commented 2 years ago

Codecov Report

Merging #23 (d7fd765) into master (b1c662d) will increase coverage by 3.11%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #23      +/-   ##
==========================================
+ Coverage   95.65%   98.76%   +3.11%     
==========================================
  Files           5        5              
  Lines         230      243      +13     
==========================================
+ Hits          220      240      +20     
+ Misses         10        3       -7     
Impacted Files Coverage Δ
R/seededlda.R 97.91% <ø> (ø)
R/lda.R 100.00% <100.00%> (ø)
R/predict.R 100.00% <100.00%> (ø)
src/lda.cpp 97.22% <0.00%> (+2.93%) :arrow_up:
src/lda.h 99.08% <0.00%> (+5.44%) :arrow_up:

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 b1c662d...d7fd765. Read the comment docs.