Skip to content

Commit

Permalink
Adding Logging to deps, and printing info while loading a collection.
Browse files Browse the repository at this point in the history
  • Loading branch information
codetalker7 committed May 29, 2024
1 parent 741eaa6 commit 95da50c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ version = "0.1.0"

[deps]
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
Transformers = "21ca0261-441d-5938-ace7-c90938fde4d4"

[compat]
Expand Down
1 change: 1 addition & 0 deletions src/ColBERT.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module ColBERT
using CSV
using Logging
using Transformers


Expand Down
1 change: 1 addition & 0 deletions src/data/collection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ end

function Collection(path::String)
file = CSV.File(path; delim='\t', header = [:pid, :text], types = Dict(:pid => Int, :text => String), debug=true, quoted=false)
@info "Loaded $(length(file.text)[1]) passages."
Collection(path, file.text)
end

0 comments on commit 95da50c

Please sign in to comment.