File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ MLJModelInterface = "1.3"
15
15
ScientificTypesBase = " 2.2.0"
16
16
ScientificTypes = " 2.2.2"
17
17
TextAnalysis = " 0.7.3"
18
- julia = " 1.5 "
18
+ julia = " 1.3 "
19
19
20
20
[extras ]
21
21
MLJBase = " a7f614a8-145f-11e9-1d2a-a57a1082229d"
Original file line number Diff line number Diff line change @@ -47,8 +47,8 @@ zero divisions: `idf(t) = log [ (1 + n) / (1 + df(t)) ] + 1`.
47
47
48
48
"""
49
49
MMI. @mlj_model mutable struct TfidfTransformer <: MLJModelInterface.Unsupervised
50
- max_doc_freq:: Float64 = 0.98
51
- min_doc_freq:: Float64 = 0.02
50
+ max_doc_freq:: Float64 = 1.0
51
+ min_doc_freq:: Float64 = 0.0
52
52
smooth_idf:: Bool = true
53
53
end
54
54
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ using TextAnalysis
50
50
" in" => 1 ,
51
51
" the cat" => 1
52
52
)
53
- bag = Dict {MLJText.NGram, Int} (Tuple (String .(split (k))) => v for (k, v) in bag_of_words)
53
+ bag = Dict (Tuple (String .(split (k))) => v for (k, v) in bag_of_words)
54
54
tfidf_transformer2 = MLJText. TfidfTransformer ()
55
55
test_machine2 = @test_logs machine (tfidf_transformer2, [bag])
56
56
MLJBase. fit! (test_machine2)
You can’t perform that action at this time.
0 commit comments