cotk icon indicating copy to clipboard operation
cotk copied to clipboard

[Feature] DenseLabel and SparseLabel add an attribute returning the size of labels

Open hzhwcmhf opened this issue 4 years ago • 0 comments

两个Label都需要添加一个接口,能够返回最大的label_id

这个可能需要从结构上进行修改,sparseLabel不能自己创建vocab,否则容易出问题

vocab的创建可能不能由默认参数来管,应该是除非特殊指定,统一使用一个vocab

hzhwcmhf avatar Jul 27 '20 03:07 hzhwcmhf