Skip to content

Commit

Permalink
Use enabled=showprogress (#284)
Browse files Browse the repository at this point in the history
* Use `enabled=showprogress`
  • Loading branch information
prbzrg authored Sep 6, 2024
1 parent 992af7e commit d69315b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "TextAnalysis"
uuid = "a2db99b7-8b79-58f8-94bf-bbc811eef33d"
license = "MIT"
desc = "Julia package for text analysis"
version = "0.8.1"
version = "0.8.2"

[deps]
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
Expand Down
4 changes: 1 addition & 3 deletions src/lda.jl
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,8 @@ function lda(

probs = Vector{Float64}(undef, ntopics)

wait_time = showprogress ? 1.0 : Inf

# Gibbs sampling
@showprogress dt = wait_time for _ in 1:iteration
@showprogress enabled = showprogress for _ in 1:iteration
for doc in docs
for (i, word) in enumerate(doc.text)
topicid_current = doc.topic[i]
Expand Down

0 comments on commit d69315b

Please sign in to comment.