Skip to content

Commit 299c7e2

Browse files
committed
as categorical
1 parent 700ad09 commit 299c7e2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/emodel.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ function VectorModel(ent::EntropyWeighting, lw::LocalWeighting, voc::Vocabulary,
5959
comb::CombineWeighting=NormalizedEntropy(),
6060
minbatch=0, verbose=true
6161
)
62+
labels = categorical(labels)
6263
@assert length(labels) == length(corpus)
6364
labels = categorical_labels(labels)
6465
n = length(labels)

0 commit comments

Comments
 (0)