Skip to content

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

@hzhwcmhf

Description

@hzhwcmhf

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

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or requestnewNew issue

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions